]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 7 Apr 2020 08:52:58 +0000 (10:52 +0200)
commite60b34d32249cc5f886925783ca1d6f5364d3e39
tree2b12e1b4321f8b65f61b7c9e0dbe9a571a39a21e
parented80bfe0e2e7706894cd78f6a40954101573fde6
media: dib0700: fix rc endpoint lookup

BugLink: https://bugs.launchpad.net/bugs/1870604
commit f52981019ad8d6718de79b425a574c6bddf81f7c upstream.

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: c4018fa2e4c0 ("[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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/media/usb/dvb-usb/dib0700_core.c