summaryrefslogtreecommitdiffstats
path: root/scripts/gdb
diff options
context:
space:
mode:
authorJimmy Assarsson <jimmyassarsson@gmail.com>2017-11-21 08:22:27 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2017-12-01 11:20:52 +0100
commite84f44eb5523401faeb9cc1c97895b68e3cfb78d (patch)
tree4e7e4280fe5743d7997fa22fb168dc7ca46a2251 /scripts/gdb
parent435019b48033138581a6171093b181fc6b4d3d30 (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 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions