aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/vc032x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/vc032x.c')
-rw-r--r--drivers/media/video/gspca/vc032x.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c
index 8f553bfbac0..4556348f96e 100644
--- a/drivers/media/video/gspca/vc032x.c
+++ b/drivers/media/video/gspca/vc032x.c
@@ -2272,6 +2272,12 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
2272 data, len); 2272 data, len);
2273 return; 2273 return;
2274 } 2274 }
2275
2276 /* The vc0321 sends some additional data after sending the complete
2277 * frame, we ignore this. */
2278 if (sd->bridge == BRIDGE_VC0321
2279 && len > frame->v4l2_buf.length - (frame->data_end - frame->data))
2280 len = frame->v4l2_buf.length - (frame->data_end - frame->data);
2275 gspca_frame_add(gspca_dev, INTER_PACKET, frame, data, len); 2281 gspca_frame_add(gspca_dev, INTER_PACKET, frame, data, len);
2276} 2282}
2277 2283