]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (11104): gspca - ov534: Bad frame pointer after adding the last packet
authorJean-Francois Moine <moinejf@free.fr>
Thu, 19 Mar 2009 09:05:06 +0000 (06:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:29 +0000 (12:43 -0300)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/ov534.c

index 054bdf02c3866a542d83a1d66a48f2f50bb15c25..ea2245626d538c8d72184dd141901c1fdf009184 100644 (file)
@@ -487,8 +487,9 @@ scan_next:
                        goto discard;
                }
 
-               gspca_frame_add(gspca_dev, LAST_PACKET, frame, NULL, 0);
-       }
+               frame = gspca_frame_add(gspca_dev, LAST_PACKET, frame,
+                                       NULL, 0);
+               }
 
        /* Done this payload */
        goto scan_next;