summaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2022-03-05 23:12:46 +0100
committerDavid S. Miller <davem@davemloft.net>2022-03-06 11:05:31 +0000
commit00f4a0afb7eafdf3dae764ec0c40fe6abfdf8254 (patch)
treefa15b812776d96faafb450254ba86e2f26de781a /net/can
parenta3d73e15909bdcf25f341e6623cc165ba7eb5968 (diff)
downloadlinux-stable-00f4a0afb7eafdf3dae764ec0c40fe6abfdf8254.tar.gz
linux-stable-00f4a0afb7eafdf3dae764ec0c40fe6abfdf8254.tar.bz2
linux-stable-00f4a0afb7eafdf3dae764ec0c40fe6abfdf8254.zip
can: Use netif_rx().
Since commit baebdf48c3600 ("net: dev: Makes sure netif_rx() can be invoked in any context.") the function netif_rx() can be used in preemptible/thread context as well as in interrupt context. Use netif_rx(). Cc: Marc Kleine-Budde <mkl@pengutronix.de> Cc: Oliver Hartkopp <socketcan@hartkopp.net> Cc: Wolfgang Grandegger <wg@grandegger.com> Cc: linux-can@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Acked-by: Oliver Hartkopp <socketcan@hartkopp.net> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/can')
-rw-r--r--net/can/af_can.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c
index cce2af10eb3e..1fb49d51b25d 100644
--- a/net/can/af_can.c
+++ b/net/can/af_can.c
@@ -284,7 +284,7 @@ int can_send(struct sk_buff *skb, int loop)
}
if (newskb)
- netif_rx_ni(newskb);
+ netif_rx(newskb);
/* update statistics */
pkg_stats->tx_frames++;