]> git.baikalelectronics.ru Git - kernel.git/commit
can: peak: fix potential bug in packet fragmentation
authorStephane Grosjean <s.grosjean@peak-system.com>
Mon, 15 Jan 2018 15:31:19 +0000 (16:31 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 16 Jan 2018 14:33:15 +0000 (15:33 +0100)
commit7ac1420426fbae1a1acb39bcf1705f424f10625c
treed454f1388e00653301eb510d1dbef485a48f6df0
parent6dfa2a6a54dc584a9640591249a9c2d275259e51
can: peak: fix potential bug in packet fragmentation

In some rare conditions when running one PEAK USB-FD interface over
a non high-speed USB controller, one useless USB fragment might be sent.
This patch fixes the way a USB command is fragmented when its length is
greater than 64 bytes and when the underlying USB controller is not a
high-speed one.

Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb_fd.c