diff options
author | Jean-François Moine <moinejf@free.fr> | 2010-06-24 03:50:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 13:51:30 -0400 |
commit | a1317135d109f4b6dd89caa1a9b2b6c8d54b09cd (patch) | |
tree | 56c08b1309529032173591728946e1b74579ea05 /drivers/media/video/gspca | |
parent | 4e6aeefeb822c70d70de4d3b9970939e5de9c647 (diff) |
V4L/DVB: gspca - pac7302/11: Bad request value in USB write
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca')
-rw-r--r-- | drivers/media/video/gspca/pac7302.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/pac7311.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/pac7302.c b/drivers/media/video/gspca/pac7302.c index 7c0f265fae9d..bf47180a4e2f 100644 --- a/drivers/media/video/gspca/pac7302.c +++ b/drivers/media/video/gspca/pac7302.c | |||
@@ -402,7 +402,7 @@ static void reg_w_buf(struct gspca_dev *gspca_dev, | |||
402 | memcpy(gspca_dev->usb_buf, buffer, len); | 402 | memcpy(gspca_dev->usb_buf, buffer, len); |
403 | ret = usb_control_msg(gspca_dev->dev, | 403 | ret = usb_control_msg(gspca_dev->dev, |
404 | usb_sndctrlpipe(gspca_dev->dev, 0), | 404 | usb_sndctrlpipe(gspca_dev->dev, 0), |
405 | 1, /* request */ | 405 | 0, /* request */ |
406 | USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, | 406 | USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, |
407 | 0, /* value */ | 407 | 0, /* value */ |
408 | index, gspca_dev->usb_buf, len, | 408 | index, gspca_dev->usb_buf, len, |
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c index 44fed9686729..c978599a69dd 100644 --- a/drivers/media/video/gspca/pac7311.c +++ b/drivers/media/video/gspca/pac7311.c | |||
@@ -270,7 +270,7 @@ static void reg_w_buf(struct gspca_dev *gspca_dev, | |||
270 | memcpy(gspca_dev->usb_buf, buffer, len); | 270 | memcpy(gspca_dev->usb_buf, buffer, len); |
271 | ret = usb_control_msg(gspca_dev->dev, | 271 | ret = usb_control_msg(gspca_dev->dev, |
272 | usb_sndctrlpipe(gspca_dev->dev, 0), | 272 | usb_sndctrlpipe(gspca_dev->dev, 0), |
273 | 1, /* request */ | 273 | 0, /* request */ |
274 | USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, | 274 | USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, |
275 | 0, /* value */ | 275 | 0, /* value */ |
276 | index, gspca_dev->usb_buf, len, | 276 | index, gspca_dev->usb_buf, len, |