kernel_optimize_test/drivers/media/usb
Johan Hovold b54a0f7926 media: gspca/gl860: fix zero-length control requests
[ Upstream commit 8ed339f23d41e21660a389adf2e7b2966d457ff6 ]

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 gl860_RTx() helper so that zero-length control reads fail with
an error message instead. Note that there are no current callers that
would trigger this.

Fixes: 4f7cb8837c ("V4L/DVB (12954): gspca - gl860: Addition of GL860 based webcams")
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:56:05 +02:00
..
airspy
as102
au0828 media: au0828: fix a NULL vs IS_ERR() check 2021-07-14 16:56:05 +02:00
b2c2
cpia2 media: cpia2: fix memory leak in cpia2_usb_probe 2021-07-14 16:55:51 +02:00
cx231xx
dvb-usb media: dvd_usb: memory leak in cinergyt2_fe_attach 2021-07-14 16:55:53 +02:00
dvb-usb-v2
em28xx media: em28xx: Fix possible memory leak of em28xx struct 2021-07-14 16:55:52 +02:00
go7007
gspca media: gspca/gl860: fix zero-length control requests 2021-07-14 16:56:05 +02:00
hackrf
hdpvr
msi2500
pvrusb2 media: pvrusb2: fix warning in pvr2_i2c_core_done 2021-07-14 16:55:51 +02:00
pwc
s2255
siano
stk1160
stkwebcam
tm6000
ttusb-budget
ttusb-dec
usbtv
uvc media: uvcvideo: Support devices that report an OT as an entity source 2021-07-11 12:53:30 +02:00
zr364xx
Kconfig
Makefile