can: ti_hecc: use netif_rx in the interrupt
PATCH 1/1 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 Wolfgang Grandegger <[email protected]>
--- drivers/net/can/ti_hecc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/can/ti_hecc.c +2 -1
@@ -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_bytes += cf->can_dlc; +return 0 ; }
Signature · 1 line
1.7.4.1
Quoted 5 lines · Wolfgang Grandegger
This patch fixes locking problems by using
netif_rx()instead ofnetif_receive_skb()inti_hecc_error()called from the interrupt context.Signed-off-by Wolfgang Grandegger <[email protected]>
applied to can-next
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |