OSDN Git Service

staging: gigaset: add endpoint-type sanity check
authorJohan Hovold <johan@kernel.org>
Mon, 2 Dec 2019 08:56:10 +0000 (09:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 10:08:07 +0000 (11:08 +0100)
commited9ed5a89acba51b82bdff61144d4e4a4245ec8a
tree9eb74f9207789b26b69ee05936f1b7907c81aa98
parent84f60ca7b326ed8c08582417493982fe2573a9ad
staging: gigaset: add endpoint-type sanity check

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>
drivers/staging/isdn/gigaset/usb-gigaset.c