]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 12 Mar 2018 08:55:12 +0000 (09:55 +0100)
commite6048a00cfd0863d32f53b226e0b9a3633fc3332
treeb1a3a7837b56623def8cea734a01b321572f4c5f
parent880dd464b4304583c557c4e5f5ecebfd55d232b1
can: peak/pcie_fd: fix echo_skb is occupied! bug

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>
drivers/net/can/peak_canfd/peak_canfd.c
drivers/net/can/peak_canfd/peak_pciefd_main.c