android_kernel_samsung_a7y1.../drivers/media/rc
Johan Hovold ad2d9eeb0f media: iguanair: fix endpoint sanity check
[ Upstream commit 1b257870a78b0a9ce98fdfb052c58542022ffb5b ]

Make sure to use the current alternate setting, which need not be the
first one by index, when verifying the endpoint descriptors and
initialising the URBs.

Failing to do so could cause the driver to misbehave or trigger a WARN()
in usb_submit_urb() that kernels with panic_on_warn set would choke on.

Fixes: 26ff63137c45 ("[media] Add support for the IguanaWorks USB IR Transceiver")
Fixes: ab1cbdf159be ("media: iguanair: add sanity checks")
Cc: stable <stable@vger.kernel.org>     # 3.6
Cc: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 13:49:13 +02:00
..
img-ir
keymaps
ati_remote.c
ene_ir.c
ene_ir.h
fintek-cir.c
fintek-cir.h
gpio-ir-recv.c
igorplugusb.c
iguanair.c media: iguanair: fix endpoint sanity check 2020-04-07 13:49:13 +02:00
imon.c
ir-hix5hd2.c
ir-jvc-decoder.c
ir-lirc-codec.c
ir-mce_kbd-decoder.c
ir-nec-decoder.c
ir-rc5-decoder.c
ir-rc6-decoder.c
ir-rx51.c
ir-sanyo-decoder.c
ir-sharp-decoder.c
ir-sony-decoder.c
ir-xmp-decoder.c
ite-cir.c
ite-cir.h
Kconfig
lirc_dev.c
Makefile
mceusb.c
meson-ir.c
nuvoton-cir.c
nuvoton-cir.h
rc-core-priv.h
rc-ir-raw.c
rc-loopback.c
rc-main.c
redrat3.c
st_rc.c
streamzap.c
sunxi-cir.c
ttusbir.c
winbond-cir.c