]> git.baikalelectronics.ru Git - kernel.git/commit
can: peak/pcie_fd: fix potential bug in restarting tx queue
authorStephane Grosjean <s.grosjean@peak-system.com>
Thu, 7 Dec 2017 15:13:43 +0000 (16:13 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 8 Dec 2017 09:51:53 +0000 (10:51 +0100)
commit49528dc3a006fd9f1eb7d968f35fce0c180d9d55
tree14c8fbdbe318d6425bcbd936d1e79cfe3271c1f0
parent4e797a7b89c99eceeef81dfca9c510e941cf4cb9
can: peak/pcie_fd: fix potential bug in restarting tx queue

Don't rely on can_get_echo_skb() return value to wake the network tx
queue up: can_get_echo_skb() returns 0 if the echo array slot was not
occupied, but also when the DLC of the released echo frame was 0.

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/peak_canfd/peak_canfd.c