can: flexcan: don't touch skb after netif_receive_skb()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 8 May 2015 09:30:29 +0000 (11:30 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 15 Jul 2015 07:04:27 +0000 (09:04 +0200)
commita18ec1b6c72eb87fe00e8e09c3a3f3cfbec3435b
tree9e06b70d3cf148f14db851d26a6acf529dc4447c
parent6ae3673debfbf2cfa1972b6d00b974d0e10ad3c6
can: flexcan: don't touch skb after netif_receive_skb()

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/flexcan.c