USB: cdc-acm: always claim data interface
authorJohan Hovold <johan@kernel.org>
Mon, 22 Mar 2021 15:53:17 +0000 (16:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Mar 2021 12:27:13 +0000 (13:27 +0100)
commit0b2b23ca20ac9329d91bdba713028cf279423383
treed450154d1f9f91f546e877bbf5e8b332bae709f4
parentf8255ee192e92fdb885a9ff6bc90d74f5bfb7cd6
USB: cdc-acm: always claim data interface

Make sure to always claim the data interface and bail out if binding
fails.

Note that the driver had a check to verify that the data interface was
not already bound to a driver but would not detect other failures (e.g.
if the interface was not authorised).

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210322155318.9837-8-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c