V4L/DVB (13198): gspca - ov519: Bad frame pointer in ovfx2 packet scan.
authorJean-Francois Moine <moinejf@free.fr>
Mon, 19 Oct 2009 10:40:33 +0000 (07:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:40:51 +0000 (18:40 -0200)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/ov519.c

index a63cb75aa7f1e6030cd41d081bdf70fba6596181..f88a526e216fc1f6bb17cdf270edd116b3e30879 100644 (file)
@@ -4058,7 +4058,7 @@ static void ovfx2_pkt_scan(struct gspca_dev *gspca_dev,
 {
        /* A short read signals EOF */
        if (len < OVFX2_BULK_SIZE) {
-               gspca_frame_add(gspca_dev, LAST_PACKET, frame, data, len);
+               frame = gspca_frame_add(gspca_dev, LAST_PACKET, frame, data, len);
                gspca_frame_add(gspca_dev, FIRST_PACKET, frame, NULL, 0);
                return;
        }