]> git.baikalelectronics.ru Git - kernel.git/commit
media: dib0700: fix rc endpoint lookup
authorJohan Hovold <johan@kernel.org>
Fri, 3 Jan 2020 16:35:12 +0000 (17:35 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 15:24:21 +0000 (16:24 +0100)
commitdd7f778d4e828ec73f9228ca073b848ec9dc9352
tree4661137b5f8084b8649f4e6e7552de17784d7d7d
parent003e977f120cf54696a7bfb253c5a83490927924
media: dib0700: fix rc endpoint lookup

Make sure to use the current alternate setting when verifying the
interface descriptors to avoid submitting an URB to an invalid endpoint.

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: a927af907c04 ("[media] dib0700: fix RC support on Hauppauge Nova-TD")
Cc: stable <stable@vger.kernel.org> # 3.16
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>
drivers/media/usb/dvb-usb/dib0700_core.c