summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/spca500.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-07-03 13:09:12 +0200
committerJean-Francois Moine <moinejf@free.fr>2008-07-03 13:09:12 +0200
commit2dd61caa92b3da1a827cf5c84799ee51bd38d869 (patch)
treee950869c3b771e63b6488dc83e80dd6ed37ecc34 /linux/drivers/media/video/gspca/spca500.c
parentdd8158c96fe0b10aad55abfaa06aff25f77ee575 (diff)
downloadmediapointer-dvb-s2-2dd61caa92b3da1a827cf5c84799ee51bd38d869.tar.gz
mediapointer-dvb-s2-2dd61caa92b3da1a827cf5c84799ee51bd38d869.tar.bz2
gspca: Input buffer may be changed on reg write.
From: Jean-Francois Moine <moinejf@free.fr> Done for conex, etoms, pac7311, sonixj, t613 and tv8532. Code cleanup for some other subdrivers. Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca/spca500.c')
-rw-r--r--linux/drivers/media/video/gspca/spca500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/spca500.c b/linux/drivers/media/video/gspca/spca500.c
index d35bfabf8..8512eaa74 100644
--- a/linux/drivers/media/video/gspca/spca500.c
+++ b/linux/drivers/media/video/gspca/spca500.c
@@ -394,7 +394,7 @@ static int reg_write(struct usb_device *dev,
ret = usb_control_msg(dev,
usb_sndctrlpipe(dev, 0),
req,
- USB_TYPE_VENDOR | USB_RECIP_DEVICE,
+ USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
value, index, NULL, 0, 500);
PDEBUG(D_USBO, "reg write: [0x%02x] = 0x%02x, 0x%x",
index, value, ret);