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

Commit e3f240f4 authored by Wolfgang Grandegger's avatar Wolfgang Grandegger Committed by Marc Kleine-Budde
Browse files

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: default avatarWolfgang Grandegger <wg@grandegger.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 2d5091e0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
}