OSDN Git Service

media: gspca/sq905: fix control-request direction
authorJohan Hovold <johan@kernel.org>
Fri, 21 May 2021 13:28:39 +0000 (15:28 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 12:10:25 +0000 (14:10 +0200)
commit53ae298fde7adcc4b1432bce2dbdf8dac54dfa72
treea0f635943edfbb73211d20239047ae978aa33459
parent8c8b9a9be2afa8bd6a72ad1130532baab9fab89d
media: gspca/sq905: fix control-request direction

The direction of the pipe argument must match the request-type direction
bit or control requests may fail depending on the host-controller-driver
implementation.

Fix the USB_REQ_SYNCH_FRAME request which erroneously used
usb_sndctrlpipe().

Fixes: 27d35fc3fb06 ("V4L/DVB (10639): gspca - sq905: New subdriver.")
Cc: stable@vger.kernel.org # 2.6.30
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/gspca/sq905.c