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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:52:47 +0000 (09:52 +0100)
commit1f5d203906bc32ddb57d73ec6ea1694505ab7ffa
tree06c9671a8f148b381ba5493cec391386c5e7d233
parent67464fbca35ccfbe2f5e957ff2a31334390b7947
can: peak/pcie_fd: fix potential bug in restarting tx queue

commit 91785de6f94b58c3fb6664609e3682f011bd28d2 upstream.

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>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/peak_canfd/peak_canfd.c