aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-07-04 10:16:16 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:16:53 -0400
commita5ae2062252e697d38e53dbbeb91460252208914 (patch)
tree38706e9f36e2d93cd3dee8eea639bb74a17b3efa /drivers/media/video/gspca/gspca.c
parent54ab92ca05550550bcec2462de2605f35d079b66 (diff)
V4L/DVB (8195): gspca: Input buffer overwritten in spca561 + cleanup code.
spca561: Input buffer may be changed on reg write. (all sd): Cleanup code, 'const' added. 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.c')
-rw-r--r--drivers/media/video/gspca/gspca.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index b36913017d7b..ad4721b06920 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -247,7 +247,7 @@ static void isoc_transfer(struct gspca_dev *gspca_dev)
247struct gspca_frame *gspca_frame_add(struct gspca_dev *gspca_dev, 247struct gspca_frame *gspca_frame_add(struct gspca_dev *gspca_dev,
248 int packet_type, 248 int packet_type,
249 struct gspca_frame *frame, 249 struct gspca_frame *frame,
250 __u8 *data, 250 const __u8 *data,
251 int len) 251 int len)
252{ 252{
253 int i, j; 253 int i, j;
@@ -1053,7 +1053,7 @@ static int vidioc_s_ctrl(struct file *file, void *priv,
1053 struct v4l2_control *ctrl) 1053 struct v4l2_control *ctrl)
1054{ 1054{
1055 struct gspca_dev *gspca_dev = priv; 1055 struct gspca_dev *gspca_dev = priv;
1056 struct ctrl *ctrls; 1056 const struct ctrl *ctrls;
1057 int i, ret; 1057 int i, ret;
1058 1058
1059 for (i = 0, ctrls = gspca_dev->sd_desc->ctrls; 1059 for (i = 0, ctrls = gspca_dev->sd_desc->ctrls;
@@ -1079,7 +1079,7 @@ static int vidioc_g_ctrl(struct file *file, void *priv,
1079{ 1079{
1080 struct gspca_dev *gspca_dev = priv; 1080 struct gspca_dev *gspca_dev = priv;
1081 1081
1082 struct ctrl *ctrls; 1082 const struct ctrl *ctrls;
1083 int i, ret; 1083 int i, ret;
1084 1084
1085 for (i = 0, ctrls = gspca_dev->sd_desc->ctrls; 1085 for (i = 0, ctrls = gspca_dev->sd_desc->ctrls;