linux/drivers/media/usb/gspca
Johan Hovold b4bb4d425b media: gspca/sunplus: fix zero-length control requests
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.

Control transfers without a data stage are treated as OUT requests by
the USB stack and should be using usb_sndctrlpipe(). Failing to do so
will now trigger a warning.

Fix the single zero-length control request which was using the
read-register helper, and update the helper so that zero-length reads
fail with an error message instead.

Fixes: 6a7eba24e4 ("V4L/DVB (8157): gspca: all subdrivers")
Cc: stable@vger.kernel.org      # 2.6.27
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>
2021-06-02 14:15:01 +02:00
..
gl860 media: gspca/gl860: fix zero-length control requests 2021-06-02 14:14:16 +02:00
m5602 media: gspca: properly check for errors in po1030_probe() 2021-05-13 18:58:32 +02:00
stv06xx media: gscpa/stv06xx: fix memory leak 2021-04-09 13:19:38 +02:00
autogain_functions.c
benq.c
conex.c
cpia1.c media: drivers/media/usb/gspca/cpia1.c : fix spelling typo 2021-06-02 14:07:37 +02:00
dtcs033.c
etoms.c
finepix.c
gspca.c media: gscpa/stv06xx: fix memory leak 2021-04-09 13:19:38 +02:00
gspca.h media: gscpa/stv06xx: fix memory leak 2021-04-09 13:19:38 +02:00
jeilinj.c
jl2005bcd.c
jpeg.h
Kconfig
kinect.c
konica.c
Makefile
mars.c
mr97310a.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
nw80x.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
ov519.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
ov534_9.c
ov534.c media: gspca: ov534-ov772x: use semicolons rather than commas to separate statements 2020-11-16 10:31:06 +01:00
pac207.c
pac7302.c
pac7311.c
pac_common.h
se401.c
se401.h
sn9c20x.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
sn9c2028.c
sn9c2028.h
sonixb.c
sonixj.c
spca500.c
spca501.c
spca505.c
spca506.c
spca508.c
spca561.c
spca1528.c
sq905.c media: gspca/sq905: fix control-request direction 2021-06-02 14:10:25 +02:00
sq905c.c
sq930x.c
stk014.c
stk1135.c
stk1135.h
stv0680.c
sunplus.c media: gspca/sunplus: fix zero-length control requests 2021-06-02 14:15:01 +02:00
t613.c
topro.c
touptek.c
tv8532.c
vc032x.c
vicam.c
w996Xcf.c media: media/usb/gspca/w996Xcf.c: /** -> /* 2021-03-22 11:54:09 +01:00
xirlink_cit.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
zc3xx-reg.h
zc3xx.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00