Re: [PATCH] Use after free in drivers/media/video/videodev.c

From: Andrew Morton
Date: Sat Aug 30 2003 - 17:18:30 EST


Kronos <kronos@xxxxxxxxxxxxxx> wrote:
>
> --- 2.6.0.orig/drivers/media/video/videodev.c Tue Aug 12 17:02:29 2003
> +++ 2.6.0/drivers/media/video/videodev.c Sat Aug 30 21:13:29 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);
> }

Yes. I already have this fix (from gregkh) queued up.

There are around 150 bugfixes in -mm at present. It is worth
checking there first...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/