linux/drivers/media
Johan Hovold c5ee36018d media: flexcop-usb: fix endpoint type check
commit 763679f0ee upstream.

Commit d725d20e81 ("media: flexcop-usb: sanity checking of endpoint
type") tried to add an endpoint type sanity check for the single
isochronous endpoint but instead broke the driver by checking the wrong
descriptor or random data beyond the last endpoint descriptor.

Make sure to check the right endpoint descriptor.

Fixes: d725d20e81 ("media: flexcop-usb: sanity checking of endpoint type")
Cc: Oliver Neukum <oneukum@suse.com>
Cc: stable@vger.kernel.org	# 5.9
Reported-by: Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20220822151027.27026-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-28 11:10:26 +02:00
..
cec media: cec-adap.c: fix is_configuring state 2022-06-09 10:20:55 +02:00
common
dvb-core
dvb-frontends
firewire
i2c media: ov7670: remove ov7670_power_off from ov7670_remove 2022-06-09 10:21:10 +02:00
mc
mmc
pci media: tw686x: Fix memory leak in tw686x_video_init 2022-08-21 15:15:42 +02:00
platform media: platform: mtk-mdp: Fix mdp_ipi_comm structure alignment 2022-08-21 15:15:46 +02:00
radio
rc media: mceusb: Use new usb_control_msg_*() routines 2022-09-08 11:11:39 +02:00
spi
test-drivers media: vim2m: initialize the media device earlier 2022-05-30 09:33:23 +02:00
tuners
usb media: flexcop-usb: fix endpoint type check 2022-09-28 11:10:26 +02:00
v4l2-core media: v4l2-mem2mem: prevent pollerr when last_buffer_dequeued is set 2022-08-21 15:15:41 +02:00
Kconfig
Makefile