The patch number 8750 was added via Mauro Carvalho Chehab <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Henrik Kretzschmar  <[EMAIL PROTECTED]>
V4L: check inval in video_register_device_index()


Better check the video_device pointer before using it.

Signed-off-by: Henrik Kretzschmar <[EMAIL PROTECTED]>
Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>


---

 linux/drivers/media/video/v4l2-dev.c |    3 +++
 1 file changed, 3 insertions(+)

diff -r 15a17b462b1b -r b634ecc09d9c linux/drivers/media/video/v4l2-dev.c
--- a/linux/drivers/media/video/v4l2-dev.c      Sun Aug 24 10:41:53 2008 -0300
+++ b/linux/drivers/media/video/v4l2-dev.c      Fri Aug 22 21:41:03 2008 +0200
@@ -291,6 +291,9 @@ int video_register_device_index(struct v
        int end;
        int ret;
        char *name_base;
+
+       if (vfd == NULL)
+               return -EINVAL;
 
        switch (type) {
        case VFL_TYPE_GRABBER:


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/b634ecc09d9cf2c62f21474d375b53cb659519dd

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to