Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f823134f authored by Alejandro Concepcion Rodriguez's avatar Alejandro Concepcion Rodriguez Committed by Greg Kroah-Hartman
Browse files

can: dev: can_restart(): post buffer from the right context



[ Upstream commit a1e654070a60d5d4f7cce59c38f4ca790bb79121 ]

netif_rx() is meant to be called from interrupt contexts. can_restart() may be
called by can_restart_work(), which is called from a worqueue, so it may run in
process context. Use netif_rx_ni() instead.

Fixes: 39549eef ("can: CAN Network device driver and Netlink interface")
Co-developed-by: default avatarLoris Fauster <loris.fauster@ttcontrol.com>
Signed-off-by: default avatarLoris Fauster <loris.fauster@ttcontrol.com>
Signed-off-by: default avatarAlejandro Concepcion Rodriguez <alejandro@acoro.eu>
Link: https://lore.kernel.org/r/4e84162b-fb31-3a73-fa9a-9438b4bd5234@acoro.eu


[mkl: use netif_rx_ni() instead of netif_rx_any_context()]
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 48ac0b18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment