diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-07-14 08:38:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:26:14 -0400 |
commit | 739570bb218bb4607df1f197282561e97a98e54a (patch) | |
tree | 25555dfe5ac873bc96866c486d6f6c1dcabf24f4 /drivers/media/video/gspca/gspca.h | |
parent | 5b77ae7776183d733ec86727bcc34c52a336afd6 (diff) |
V4L/DVB (8352): gspca: Buffers for USB exchanges cannot be in the stack.
gspca: Protect dq_callback() against simultaneous USB exchanges.
Temporary buffer for USB exchanges added in the device struct.
(all) Use a temporary buffer for all USB exchanges.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/gspca/gspca.h')
-rw-r--r-- | drivers/media/video/gspca/gspca.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h index 78fccefcd576..3fd2c4eee204 100644 --- a/drivers/media/video/gspca/gspca.h +++ b/drivers/media/video/gspca/gspca.h | |||
@@ -125,6 +125,7 @@ struct gspca_dev { | |||
125 | struct cam cam; /* device information */ | 125 | struct cam cam; /* device information */ |
126 | const struct sd_desc *sd_desc; /* subdriver description */ | 126 | const struct sd_desc *sd_desc; /* subdriver description */ |
127 | 127 | ||
128 | __u8 usb_buf[8]; /* buffer for USB exchanges */ | ||
128 | struct urb *urb[MAX_NURBS]; | 129 | struct urb *urb[MAX_NURBS]; |
129 | 130 | ||
130 | __u8 *frbuf; /* buffer for nframes */ | 131 | __u8 *frbuf; /* buffer for nframes */ |