can: at91_can: don't touch skb after netif_receive_skb()/netif_rx()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 11 Jul 2015 19:03:07 +0000 (21:03 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 15 Jul 2015 07:04:26 +0000 (09:04 +0200)
commit6ae3673debfbf2cfa1972b6d00b974d0e10ad3c6
tree308d12f3d15eef65462d31c5b0ee3252b2d77be9
parent50c2e4dd6749725338621fff456b26d3a592259f
can: at91_can: don't touch skb after netif_receive_skb()/netif_rx()

There is no guarantee that the skb is in the same state after calling
net_receive_skb() or netif_rx(). It might be freed or reused. Not really
harmful as its a read access, except you turn on the proper debugging options
which catch a use after free.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/at91_can.c