]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (7401): radio-si470x: unplugging fixed
authorTobias Lorenz <tobias.lorenz@gmx.net>
Tue, 22 Apr 2008 17:46:11 +0000 (14:46 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:53 +0000 (14:07 -0300)
commit03dea86de2243d5b3932604b799be26efeff010d
tree082b05a091fe262464498404bd4f8cc048e66e87
parentb412ba781adcb484e8d9b19b30ae1d3a6b8c7d29
V4L/DVB (7401): radio-si470x: unplugging fixed

This patch fixes several kernel oops, when unplugging device while it is in
use:

Basically the patch delays freeing of the internal variables in
si470x_usb_driver_disconnect, until the the last user closed the device in
si470x_fops_release. This was implemented a while ago with the help of Oliver
Neukum.

I tested the patch five times (unplugging while in use) without oops coming
from the radio-si470x driver anymore. A remaining oops was coming from the
usbaudio driver, but this is someone else task. Hopefully this fixed all
unplugging issues.

Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/radio/radio-si470x.c