mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 06:50:08 +00:00
V4L/DVB (13067): radio-mr800: fix potential use after free
Fix portential use after free. Signed-off-by: David Ellingsworth <david@identd.dyndns.org> Acked-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
26452bfef4
commit
4e3616576e
@ -273,8 +273,8 @@ static void usb_amradio_disconnect(struct usb_interface *intf)
|
||||
mutex_unlock(&radio->lock);
|
||||
|
||||
usb_set_intfdata(intf, NULL);
|
||||
video_unregister_device(&radio->videodev);
|
||||
v4l2_device_disconnect(&radio->v4l2_dev);
|
||||
video_unregister_device(&radio->videodev);
|
||||
}
|
||||
|
||||
/* vidioc_querycap - query device capabilities */
|
||||
|
Loading…
Reference in New Issue
Block a user