summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-10-12 11:54:23 +0300
committerJohan Hovold <johan@kernel.org>2017-10-13 10:45:09 +0300
commitee13a25fc355650b3acf43857b7a496eb6b07f0b (patch)
tree748ff505fb70d5a48a75ae9923151260a034b845 /include
parent6f792f471fad3ed16aca9ccedacdcd48fbedf7a9 (diff)
downloadlinux-ee13a25fc355650b3acf43857b7a496eb6b07f0b.tar.xz
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 'include')
0 files changed, 0 insertions, 0 deletions