Commit 01b988b2 authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mauro Carvalho Chehab

V4L/DVB (8573): gspca: Bad scan of frame in spca505/506/508.

Bug introduced in changeset 6de914aaad86.
Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 16fca044
...@@ -776,7 +776,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, ...@@ -776,7 +776,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
default: default:
data += 1; data += 1;
len -= 1; len -= 1;
gspca_frame_add(gspca_dev, FIRST_PACKET, frame, gspca_frame_add(gspca_dev, INTER_PACKET, frame,
data, len); data, len);
break; break;
} }
......
...@@ -588,7 +588,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, ...@@ -588,7 +588,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
default: default:
data += 1; data += 1;
len -= 1; len -= 1;
gspca_frame_add(gspca_dev, FIRST_PACKET, frame, gspca_frame_add(gspca_dev, INTER_PACKET, frame,
data, len); data, len);
break; break;
} }
......
...@@ -1583,7 +1583,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, ...@@ -1583,7 +1583,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
default: default:
data += 1; data += 1;
len -= 1; len -= 1;
gspca_frame_add(gspca_dev, FIRST_PACKET, frame, gspca_frame_add(gspca_dev, INTER_PACKET, frame,
data, len); data, len);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment