diff options
| author | Johan Hovold <johan@kernel.org> | 2017-10-12 10:54:23 +0200 |
|---|---|---|
| committer | Johan Hovold <johan@kernel.org> | 2017-10-13 09:45:09 +0200 |
| commit | ee13a25fc355650b3acf43857b7a496eb6b07f0b (patch) | |
| tree | 748ff505fb70d5a48a75ae9923151260a034b845 /drivers/usb/serial/usb-serial.c | |
| parent | 6f792f471fad3ed16aca9ccedacdcd48fbedf7a9 (diff) | |
| download | linux-ee13a25fc355650b3acf43857b7a496eb6b07f0b.tar.gz linux-ee13a25fc355650b3acf43857b7a496eb6b07f0b.tar.bz2 linux-ee13a25fc355650b3acf43857b7a496eb6b07f0b.zip | |
USB: serial: metro-usb: add missing interrupt-out endpoint check
One class of "unidirectional" devices managed by this driver uses an
interrupt-out endpoint to send control messages at open and close. Due
to a missing endpoint sanity check, this could result in an interrupt
URB being submitted to endpoint 0 instead. This would be caught by
USB core (without a WARN dump), but let's verify that the expected
endpoints are present at probe rather than when a port is later opened.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
0 files changed, 0 insertions, 0 deletions
