summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/opticon.c
diff options
context:
space:
mode:
authorJohan Hovold2017-01-12 14:56:19 +0100
committerJohan Hovold2017-01-16 16:38:56 +0100
commitb5fda434b13de8328c57421e31ac91d401c93b97 (patch)
treeceb3b071d177b8a8b07c498b1bd6d8e1302e0dc9 /drivers/usb/serial/opticon.c
parentUSB: serial: mos7840: fix control-message error handling (diff)
downloadkernel-qcow2-linux-b5fda434b13de8328c57421e31ac91d401c93b97.tar.gz
kernel-qcow2-linux-b5fda434b13de8328c57421e31ac91d401c93b97.tar.xz
kernel-qcow2-linux-b5fda434b13de8328c57421e31ac91d401c93b97.zip
USB: serial: pl2303: fix line-setting error handling
Make sure to return an error on zero-length transfers when retrieving the line settings even if the driver currently ignores the return value. Also remove a redundant check for short transfer when setting the line settings. Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/opticon.c')
0 files changed, 0 insertions, 0 deletions