diff options
Diffstat (limited to 'drivers/media/radio')
-rw-r--r-- | drivers/media/radio/si470x/radio-si470x-usb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/radio/si470x/radio-si470x-usb.c b/drivers/media/radio/si470x/radio-si470x-usb.c index a0a79c70dd5b..6f60841828da 100644 --- a/drivers/media/radio/si470x/radio-si470x-usb.c +++ b/drivers/media/radio/si470x/radio-si470x-usb.c | |||
@@ -842,9 +842,11 @@ static void si470x_usb_driver_disconnect(struct usb_interface *intf) | |||
842 | kfree(radio->int_in_buffer); | 842 | kfree(radio->int_in_buffer); |
843 | video_unregister_device(radio->videodev); | 843 | video_unregister_device(radio->videodev); |
844 | kfree(radio->buffer); | 844 | kfree(radio->buffer); |
845 | mutex_unlock(&radio->disconnect_lock); | ||
845 | kfree(radio); | 846 | kfree(radio); |
847 | } else { | ||
848 | mutex_unlock(&radio->disconnect_lock); | ||
846 | } | 849 | } |
847 | mutex_unlock(&radio->disconnect_lock); | ||
848 | } | 850 | } |
849 | 851 | ||
850 | 852 | ||