]> 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)
commit5392776ab6d56310da99efc55a9a1439d165a01a
tree34d77130dc42d8daa40c88016982dff392b8225d
parent15cbe164427ce4e7db6afe9ca480a72bea61b237
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