can: peak/pcie_fd: fix echo_skb is occupied! bug
authorStephane Grosjean <s.grosjean@peak-system.com>
Thu, 8 Mar 2018 08:30:28 +0000 (09:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Mar 2018 16:24:43 +0000 (18:24 +0200)
commit74f08b1e0de81d8ee15c04177dbe15840e865cea
tree145dabe6d4f680e0a8ce51c07f663f030ef06ed1
parent2a2b9ef3092680bdf09751d55420910f81fd0c3c
can: peak/pcie_fd: fix echo_skb is occupied! bug

commit e6048a00cfd0863d32f53b226e0b9a3633fc3332 upstream.

This patch makes atomic the handling of the linux-can echo_skb array and
the network tx queue. This prevents from the "BUG! echo_skb is occupied!"
message to be printed by the linux-can core, in SMP environments.

Reported-by: Diana Burgess <diana@peloton-tech.com>
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/peak_canfd/peak_canfd.c
drivers/net/can/peak_canfd/peak_pciefd_main.c