]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging: gigaset: add endpoint-type sanity check
authorJohan Hovold <johan@kernel.org>
Mon, 2 Dec 2019 08:56:10 +0000 (09:56 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:34 +0000 (14:22 -0300)
commitfb6c395e155eafcf0a075c2d6975e8b78851d8fb
tree3dfcb8d471ceae6c16fe281313c93f4f00b405dd
parent899dd77ab9a3c30dc592e8ece3aca1a1c6c9b3c2
staging: gigaset: add endpoint-type sanity check

BugLink: https://bugs.launchpad.net/bugs/1857158
commit ed9ed5a89acba51b82bdff61144d4e4a4245ec8a upstream.

Add missing endpoint-type sanity checks to probe.

This specifically prevents a warning in USB core on URB submission when
fuzzing USB descriptors.

Signed-off-by: Johan Hovold <johan@kernel.org>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191202085610.12719-4-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/isdn/gigaset/usb-gigaset.c