diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-11-21 09:13:59 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-11-21 09:13:59 -0200 |
commit | d3994baf2ed28dc7f864f229e703f8ac395bc772 (patch) | |
tree | 9843cfaa671911d37971a3abfb555f0378fc8580 /linux/drivers/media/video/et61x251 | |
parent | 7e385b9df5fa0f2d85b30da7e758739a06563650 (diff) | |
download | mediapointer-dvb-s2-d3994baf2ed28dc7f864f229e703f8ac395bc772.tar.gz mediapointer-dvb-s2-d3994baf2ed28dc7f864f229e703f8ac395bc772.tar.bz2 |
Fix: Slot 0 not NULL on disconnecting SN9C10x PC Camera
From: Luca Risolia <luca.risolia@studio.unibo.it>
The patch fix bug 5748.
Signed-off-by: Luca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/et61x251')
-rw-r--r-- | linux/drivers/media/video/et61x251/et61x251_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/et61x251/et61x251_core.c b/linux/drivers/media/video/et61x251/et61x251_core.c index d8961d82c..17577a9cc 100644 --- a/linux/drivers/media/video/et61x251/et61x251_core.c +++ b/linux/drivers/media/video/et61x251/et61x251_core.c @@ -1186,8 +1186,6 @@ static void et61x251_release_resources(struct et61x251_device* cam) video_set_drvdata(cam->v4ldev, NULL); video_unregister_device(cam->v4ldev); - usb_put_dev(cam->usbdev); - mutex_unlock(&et61x251_sysfs_lock); kfree(cam->control_buffer); @@ -1279,6 +1277,7 @@ static int et61x251_release(struct inode* inode, struct file* filp) if (cam->state & DEV_DISCONNECTED) { et61x251_release_resources(cam); + usb_put_dev(cam->usbdev); mutex_unlock(&cam->dev_mutex); kfree(cam); return 0; |