patch-2.4.6 linux/drivers/media/video/videodev.c

Next file: linux/drivers/media/video/zr36120.c
Previous file: linux/drivers/media/video/tuner.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.5/linux/drivers/media/video/videodev.c linux/drivers/media/video/videodev.c
@@ -373,6 +373,8 @@
 		return;
 
 	p = create_proc_entry(name, S_IFREG|S_IRUGO|S_IWUSR, video_dev_proc_entry);
+	if (!p)
+		return;
 	p->data = vfd;
 	p->read_proc = videodev_proc_read;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)