diff options
author | Dan Carpenter <[email protected]> | 2018-07-04 12:29:38 +0300 |
---|---|---|
committer | Johan Hovold <[email protected]> | 2018-07-04 15:40:54 +0200 |
commit | e33eab9ded328ccc14308afa51b5be7cbe78d30b (patch) | |
tree | 6bfa33296602bd3e3a1b72e1142c25b69fe1063a /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 021c91791a5e7e85c567452f1be3e4c2c6cb6063 (diff) |
USB: serial: ch341: fix type promotion bug in ch341_control_in()
The "r" variable is an int and "bufsize" is an unsigned int so the
comparison is type promoted to unsigned. If usb_control_msg() returns a
negative that is treated as a high positive value and the error handling
doesn't work.
Fixes: 2d5a9c72d0c4 ("USB: serial: ch341: fix control-message error handling")
Signed-off-by: Dan Carpenter <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions