diff options
author | David Ellingsworth <david@identd.dyndns.org> | 2009-09-23 17:03:52 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:40:10 -0500 |
commit | 4e3616576e9e65d53f9381b9f334257299c7262e (patch) | |
tree | 248c599597fef7b5168c8400d618424d50f2ac07 /drivers | |
parent | 26452bfef4ae4798b96281ad8d3aed6e2d79846e (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/radio/radio-mr800.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-mr800.c b/drivers/media/radio/radio-mr800.c index c4f4cd8dbb6c..dbae50ba250c 100644 --- a/drivers/media/radio/radio-mr800.c +++ b/drivers/media/radio/radio-mr800.c | |||
@@ -273,8 +273,8 @@ static void usb_amradio_disconnect(struct usb_interface *intf) | |||
273 | mutex_unlock(&radio->lock); | 273 | mutex_unlock(&radio->lock); |
274 | 274 | ||
275 | usb_set_intfdata(intf, NULL); | 275 | usb_set_intfdata(intf, NULL); |
276 | video_unregister_device(&radio->videodev); | ||
277 | v4l2_device_disconnect(&radio->v4l2_dev); | 276 | v4l2_device_disconnect(&radio->v4l2_dev); |
277 | video_unregister_device(&radio->videodev); | ||
278 | } | 278 | } |
279 | 279 | ||
280 | /* vidioc_querycap - query device capabilities */ | 280 | /* vidioc_querycap - query device capabilities */ |