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 054bdf0..ea22456 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;