diff options
author | Johan Hovold <johan@kernel.org> | 2017-01-12 14:56:23 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-01-16 16:38:57 +0100 |
commit | 39712e8bfa8d3aa6ce1e60fc9d62c9b076c17a30 (patch) | |
tree | 5a09d637d3ede98aa8c71bab23fa974e7dfb8ddc /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 1eac5c244f705182d1552a53e2f74e2775ed95d6 (diff) |
USB: serial: ti_usb_3410_5052: fix control-message error handling
Make sure to detect and return an error on zero-length control-message
transfers when reading from the device.
This addresses a potential failure to detect an empty transmit buffer
during close.
Also remove a redundant check for short transfer when sending a command.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions