ChangeSet 1.1276.22.25, 2003/08/22 15:52:51-07:00, greg@kroah.com [PATCH] V4L: fix use after free bug in v4l core. drivers/media/video/videodev.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c --- a/drivers/media/video/videodev.c Tue Sep 2 12:46:38 2003 +++ b/drivers/media/video/videodev.c Tue Sep 2 12:46:38 2003 @@ -349,9 +349,9 @@ if(video_device[vfd->minor]!=vfd) panic("videodev: bad unregister"); - class_device_unregister(&vfd->class_dev); devfs_remove(vfd->devfs_name); video_device[vfd->minor]=NULL; + class_device_unregister(&vfd->class_dev); up(&videodev_lock); }