Revert "cdc-acm: hardening against malicious devices"
authorJohan Hovold <johan@kernel.org>
Mon, 21 Sep 2020 13:59:48 +0000 (15:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Sep 2020 15:01:12 +0000 (17:01 +0200)
commite3be44cd43f312324d4eb5cdbfea184628c333fc
tree2470f822abf5b4beb8c97cf250f0b415eab036b9
parentdbb29de70ae73a5737506d6cfe802bee81557ae7
Revert "cdc-acm: hardening against malicious devices"

This reverts commit 2ad9d544f2497a7bf239c34bd2b86fd19683dbb5.

Drop bogus sanity check; an interface in the active configuration will
always have a current altsetting assigned by USB core.

Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20200921135951.24045-2-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c