Skip to content

Commit

Permalink
can: ti_hecc: use netif_rx in the interrupt
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
grandwolf authored and marckleinebudde committed Feb 2, 2012
1 parent 2d5091e commit e3f240f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/can/ti_hecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e3f240f

Please sign in to comment.