From: Gerhard Uttenthaler Date: Tue, 22 Dec 2015 16:29:16 +0000 (+0100) Subject: can: ems_usb: Fix possible tx overflow X-Git-Tag: v3.2.79~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=045d2da9950528ec72f06fbb1cb2b981c2541ba0;p=pandora-kernel.git can: ems_usb: Fix possible tx overflow commit 90cfde46586d2286488d8ed636929e936c0c9ab2 upstream. 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 Signed-off-by: Marc Kleine-Budde Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed