V4L/DVB (9655): radio-mr800: fix unplug
authorAlexey Klimov <klimov.linux@gmail.com>
Wed, 19 Nov 2008 03:36:29 +0000 (00:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:38:05 +0000 (09:38 -0200)
commit3480130a502a528373f98fb852d2b3fc5f73e58b
tree331f7e5d900aec5a184b73bf858318f5fc54ae7b
parentc7abfb47c9e19d63ce6f757afcb392c69ce09765
V4L/DVB (9655): radio-mr800: fix unplug

This patch fixes problems(kernel oopses) with unplug of device while
it's working.
Patch adds disconnect_lock mutex, changes usb_amradio_close and
usb_amradio_disconnect functions and adds a lot of safety checks.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/radio-mr800.c