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>
Sat, 21 Dec 2019 09:35:11 +0000 (10:35 +0100)
commit2075b8accf1a0387a50d49e277eff8d440d242f3
tree12af2e3995edaed5df44ce31e251491428f40859
parenta2b2bc294727658541ea884f60a688adf71b67cb
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>
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/isdn/gigaset/usb-gigaset.c