提交 e3f240f4 编写于 作者: W Wolfgang Grandegger 提交者: Marc Kleine-Budde

can: ti_hecc: use netif_rx in the interrupt

This patch fixes locking problems by using netif_rx() instead of
netif_receive_skb() in ti_hecc_error() called from the interrupt
context.
Signed-off-by: NWolfgang Grandegger <wg@grandegger.com>
Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
上级 2d5091e0
...@@ -745,9 +745,10 @@ static int ti_hecc_error(struct net_device *ndev, int int_status, ...@@ -745,9 +745,10 @@ static int ti_hecc_error(struct net_device *ndev, int int_status,
} }
} }
netif_receive_skb(skb); netif_rx(skb);
stats->rx_packets++; stats->rx_packets++;
stats->rx_bytes += cf->can_dlc; stats->rx_bytes += cf->can_dlc;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册