]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 28 Apr 2020 18:02:46 +0000 (19:02 +0100)
commit537374219fefd1668a9c4760c600611dc9f6c4e3
tree4b58a979ae0a4aa49448d744d0649ca843da7a64
parent6113c5fe6ec39d38501c7fa50b884457c295533f
staging: gigaset: add endpoint-type sanity check

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>
Link: https://lore.kernel.org/r/20191202085610.12719-4-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.16: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/isdn/gigaset/usb-gigaset.c