• Tobias Lorenz's avatar
    V4L/DVB (7401): radio-si470x: unplugging fixed · 03dea86d
    Tobias Lorenz authored
    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: default avatarTobias Lorenz <tobias.lorenz@gmx.net>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
    03dea86d
radio-si470x.c 43.2 KB