aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Fran├žois Moine <moinejf@free.fr>2010-09-13 08:22:37 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-09-28 01:22:01 (GMT)
commit04d174e99a6eca2f62b56c10ae1d7d0499d83e9d (patch)
treede64baf40118f353cb3b9a1ebd03bdb8fe85677d
parent2fc11536cf5c0b8eb4eb7e01a2a672a189e9280f (diff)
V4L/DVB: gspca - sn9c20x: Bad transfer size of Bayer images
As the end of frame marker does not contain any pixel, it must not be transferred. Reported-by: Ivo Jager <ivo.jager@siliconfields.net> Signed-off-by: Jean-Fran├žois Moine <moinejf@free.fr> Cc: stable@kernel.org Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/gspca/sn9c20x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/sn9c20x.c b/drivers/media/video/gspca/sn9c20x.c
index 83a718f..9052d570 100644
--- a/drivers/media/video/gspca/sn9c20x.c
+++ b/drivers/media/video/gspca/sn9c20x.c
@@ -2357,8 +2357,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
(data[33] << 10);
avg_lum >>= 9;
atomic_set(&sd->avg_lum, avg_lum);
- gspca_frame_add(gspca_dev, LAST_PACKET,
- data, len);
+ gspca_frame_add(gspca_dev, LAST_PACKET, NULL, 0);
return;
}
if (gspca_dev->last_packet_type == LAST_PACKET) {

Privacy Policy