The patch number 9878 was added via Jean-Francois Moine <moin...@free.fr>
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: Hans de Goede  <hdego...@redhat.com>
gspca - vc032x: Fix frame overflow errors with vc0321.


The vc0321 sends some additional data after sending the complete
frame, we ignore this.

Priority: normal

Signed-off-by: Hans de Goede <hdego...@redhat.com>
Signed-off-by: Jean-Francois Moine <moin...@free.fr>


---

 linux/drivers/media/video/gspca/vc032x.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff -r b3295fb36a93 -r 6b73ef236657 linux/drivers/media/video/gspca/vc032x.c
--- a/linux/drivers/media/video/gspca/vc032x.c  Wed Dec 10 10:06:20 2008 +0100
+++ b/linux/drivers/media/video/gspca/vc032x.c  Thu Dec 11 09:02:18 2008 +0100
@@ -2291,6 +2291,12 @@ static void sd_pkt_scan(struct gspca_dev
                                data, len);
                return;
        }
+
+       /* The vc0321 sends some additional data after sending the complete
+        * frame, we ignore this. */
+       if (sd->bridge == BRIDGE_VC0321
+           && len > frame->v4l2_buf.length - (frame->data_end - frame->data))
+               len = frame->v4l2_buf.length - (frame->data_end - frame->data);
        gspca_frame_add(gspca_dev, INTER_PACKET, frame, data, len);
 }
 


---

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

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

Reply via email to