The patch number 12053 was added via [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:
        Linux Media Mailing List <[email protected]>

------

From: Hans de Goede  <[email protected]>
libv4l: Fix a crash in v4lcontrol_controls_changed()


Don't crash when v4lcontrol_controls_changed() gets called and we have
no fake controls (null pointer dereference).

Priority: normal

Signed-off-by: Hans de Goede <[email protected]>


---

 v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c |    3 +++
 1 file changed, 3 insertions(+)

diff -r be48d8a3eec7 -r e34f101b80c2 
v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c
--- a/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c    Wed May 27 
20:05:11 2009 +0200
+++ b/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c    Fri May 29 
11:42:59 2009 +0200
@@ -487,6 +487,9 @@ int v4lcontrol_controls_changed(struct v
 {
   int res;
 
+  if (!data->controls)
+    return 0;
+
   res = memcmp(data->shm_values, data->old_values,
               V4LCONTROL_COUNT * sizeof(unsigned int));
 


---

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

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

Reply via email to