]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: serial: pl2303: fix line-setting error handling
authorJohan Hovold <johan@kernel.org>
Thu, 12 Jan 2017 13:56:19 +0000 (14:56 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 16 Jan 2017 15:38:56 +0000 (16:38 +0100)
commitb5fda434b13de8328c57421e31ac91d401c93b97
treeceb3b071d177b8a8b07c498b1bd6d8e1302e0dc9
parentcd8db057e93ddaacbec025b567490555d2bca280
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>
drivers/usb/serial/pl2303.c