Skip to contentSkip to conversation

can: ti_hecc: use netif_rx in the interrupt

PATCH Applied Wolfgang Grandegger 2 participants 2 messages Feb 1, 2012 CAN network drivers

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/net/can/ti_hecc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/can/ti_hecc.c +2 -1
index df809e3..5a2e1e3 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 5 lines · Wolfgang Grandegger

This patch fixes locking problems by using netif_rx() instead of netif_receive_skb() in ti_hecc_error() called from the interrupt context.

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   |