V4L/DVB (4928): Usbvision_v4l2 robustness on disconnect
authorThierry <thierry.merle@free.fr>
Mon, 4 Dec 2006 11:31:17 +0000 (08:31 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 10 Dec 2006 11:05:46 +0000 (09:05 -0200)
commit5f7fb877be14da92803f0b5b60955e071ebe2d58
tree31f2201908f778d5d02ffb798bfa37346efaf108
parentf2242ee5474f46d87a45cd4e214b5c3aa02ff293
V4L/DVB (4928): Usbvision_v4l2 robustness on disconnect

This patch corrects 2 bugs (causes kernel oops) that occur when
unplugging the peripheral whereas nobody has opened it yet :
- do not call usbvision_stop_isoc if usbvision_init_isoc has not been called
- do not call wakeup_interruptible on waitqueues that did not have been
initialized with init_waitqueue_head

Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/usbvision/usbvision-core.c
drivers/media/video/usbvision/usbvision.h