summaryrefslogtreecommitdiff
path: root/drivers/media/video/gspca/ov534.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-03-19 12:05:06 +0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 19:43:29 +0400
commit3481c19854cdb1de1842c6ea6d558006ac0b3b7d (patch)
tree6574a5880417d3cfa7bda185edfcf4e105938f06 /drivers/media/video/gspca/ov534.c
parent0dc641dc9f7f168fc45f3032b22dcf7d5b57c47c (diff)
downloadlinux-3481c19854cdb1de1842c6ea6d558006ac0b3b7d.tar.xz
V4L/DVB (11104): gspca - ov534: Bad frame pointer after adding the last packet
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/ov534.c')
-rw-r--r--drivers/media/video/gspca/ov534.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c
index 054bdf02c386..ea2245626d53 100644
--- a/drivers/media/video/gspca/ov534.c
+++ b/drivers/media/video/gspca/ov534.c
@@ -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;