mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Jean-François Moine <[email protected]> Cc: [email protected] Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
2fc11536cf
commit
04d174e99a
1 changed files with 1 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue