[PATCH 3.16 042/254] can: kvaser_usb: Fix comparison bug in kvaser_usb_read_bulk_callback()

2018-02-28 Thread Ben Hutchings
3.16.55-rc1 review patch. If anyone has any objections, please let me know. -- From: Jimmy Assarsson commit e84f44eb5523401faeb9cc1c97895b68e3cfb78d upstream. The conditon in the while-loop becomes true when actual_length is less than 2

[PATCH 3.16 042/254] can: kvaser_usb: Fix comparison bug in kvaser_usb_read_bulk_callback()

2018-02-28 Thread Ben Hutchings
3.16.55-rc1 review patch. If anyone has any objections, please let me know. -- From: Jimmy Assarsson commit e84f44eb5523401faeb9cc1c97895b68e3cfb78d upstream. The conditon in the while-loop becomes true when actual_length is less than 2 (MSG_HEADER_LEN). In best case we end