]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/media/video/gspca/ov534.c
V4L/DVB (11104): gspca - ov534: Bad frame pointer after adding the last packet
[mv-sheeva.git] / 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;