The patch number 9920 was added via Devin Heitmueller <dheitmuel...@linuxtv.org>
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:
        v4l-dvb-maintai...@linuxtv.org

------

From: Devin Heitmueller  <dheitmuel...@linuxtv.org>
em28xx: fix NULL pointer dereference in call to VIDIOC_INT_RESET command


Fix a NULL pointer dereference that would occur if the video decoder tied to
the em28xx supports the VIDIOC_INT_RESET call (for example: the cx25840 driver)

Priority: high

Signed-off-by: Devin Heitmueller <dheitmuel...@linuxtv.org>


---

 linux/drivers/media/video/em28xx/em28xx-video.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -r 402de62fe6a6 -r 8760744a13a8 
linux/drivers/media/video/em28xx/em28xx-video.c
--- a/linux/drivers/media/video/em28xx/em28xx-video.c   Mon Dec 08 19:16:05 
2008 -0200
+++ b/linux/drivers/media/video/em28xx/em28xx-video.c   Tue Dec 16 21:09:35 
2008 -0500
@@ -555,10 +555,11 @@ static void em28xx_config_i2c(struct em2
 static void em28xx_config_i2c(struct em28xx *dev)
 {
        struct v4l2_routing route;
+       int zero = 0;
 
        route.input = INPUT(dev->ctl_input)->vmux;
        route.output = 0;
-       em28xx_i2c_call_clients(dev, VIDIOC_INT_RESET, NULL);
+       em28xx_i2c_call_clients(dev, VIDIOC_INT_RESET, &zero);
        em28xx_i2c_call_clients(dev, VIDIOC_INT_S_VIDEO_ROUTING, &route);
        em28xx_i2c_call_clients(dev, VIDIOC_STREAMON, NULL);
 }


---

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

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to