Skip to contentSkip to conversation

add create_proc_entry check to videodev.c (245ac16)

PATCH New Rasmus Andersen 1 participant 1 message Jun 24, 2001 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add create_proc_entry check to videodev.c (245ac16)

Hi.

The patch below adds a check for create_proc_entry return code in drivers/media/video/videodev.c. It applies against 245-ac16 and 246p6.

drivers/media/video/videodev.c +2 -0
@@ -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;
 
Signature · 5 lines
Regards,
        Rasmus([email protected])

Genius may have its limitations, but stupidity is not thus handicapped. 
  -- Elbert Hubbard