Skip to content

Commit

Permalink
V4L/DVB (13067): radio-mr800: fix potential use after free
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Ellingsworth authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent 26452bf commit 4e36165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/radio/radio-mr800.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4e36165

Please sign in to comment.