diff options
author | Jimmy Assarsson <jimmyassarsson@gmail.com> | 2017-11-21 02:22:27 -0500 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2017-12-01 05:20:52 -0500 |
commit | e84f44eb5523401faeb9cc1c97895b68e3cfb78d (patch) | |
tree | 4e7e4280fe5743d7997fa22fb168dc7ca46a2251 /tools/perf/scripts/python/stackcollapse.py | |
parent | 435019b48033138581a6171093b181fc6b4d3d30 (diff) |
can: kvaser_usb: Fix comparison bug in kvaser_usb_read_bulk_callback()
The conditon in the while-loop becomes true when actual_length is less than
2 (MSG_HEADER_LEN). In best case we end up with a former, already
dispatched msg, that got msg->len greater than actual_length. This will
result in a "Format error" error printout.
Problem seen when unplugging a Kvaser USB device connected to a vbox guest.
warning: comparison between signed and unsigned integer expressions
[-Wsign-compare]
Signed-off-by: Jimmy Assarsson <jimmyassarsson@gmail.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions