]> git.baikalelectronics.ru Git - kernel.git/commit
can: ems_usb: Fix possible tx overflow
authorGerhard Uttenthaler <uttenthaler@ems-wuensche.com>
Tue, 22 Dec 2015 16:29:16 +0000 (17:29 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 21 Feb 2016 14:09:12 +0000 (15:09 +0100)
commit2a467061c755919d055d6dc030e034132c703983
tree34d77130dc42d8daa40c88016982dff392b8225d
parentc294523e6f68cb3b9ddce44e653ac05ecefcfbbf
can: ems_usb: Fix possible tx overflow

This patch fixes the problem that more CAN messages could be sent to the
interface as could be send on the CAN bus. This was more likely for slow baud
rates. The sleeping _start_xmit was woken up in the _write_bulk_callback. Under
heavy TX load this produced another bulk transfer without checking the
free_slots variable and hence caused the overflow in the interface.

Signed-off-by: Gerhard Uttenthaler <uttenthaler@ems-wuensche.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/ems_usb.c