]> git.karo-electronics.de Git - linux-beck.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)
commit90cfde46586d2286488d8ed636929e936c0c9ab2
tree34d77130dc42d8daa40c88016982dff392b8225d
parentd07c0278da1f4cfc91c3d46d0d07a0d13a949892
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