Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271921
b: refs/heads/master
c: b868a53
h: refs/heads/master
i:
  271919: 0302def
v: v3
  • Loading branch information
Chris Rankin authored and Mauro Carvalho Chehab committed Sep 25, 2011
1 parent b8d8c2f commit 187e23e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a6c4a9567aed23cf7e8134c63f3176a57e5572b
refs/heads/master: b868a537b675eed2ba84bbeca4c8557ebf9e0156
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -3005,7 +3005,9 @@ static int em28xx_init_dev(struct em28xx **devhandle, struct usb_device *udev,
goto fail;
}

mutex_unlock(&dev->lock);
em28xx_init_extension(dev);
mutex_lock(&dev->lock);

/* Save some power by putting tuner to sleep */
v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_power, 0);
Expand Down Expand Up @@ -3301,10 +3303,10 @@ static void em28xx_usb_disconnect(struct usb_interface *interface)
em28xx_release_resources(dev);
}

em28xx_close_extension(dev);

mutex_unlock(&dev->lock);

em28xx_close_extension(dev);

if (!dev->users) {
kfree(dev->alt_max_pkt_size);
kfree(dev);
Expand Down

0 comments on commit 187e23e

Please sign in to comment.