can: kvaser_usb: Don't dereference skb after a netif_rx()
authorAhmed S. Darwish <ahmed.darwish@valeo.com>
Sun, 11 Jan 2015 20:49:52 +0000 (15:49 -0500)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 15 Jan 2015 15:58:02 +0000 (16:58 +0100)
commita58518ccf39f86f898a65201518dd8e799b3abeb
tree3c42597cfdbb112cbeeddf0a94b2a79513a9b045
parent5e7e6e0c9b47a45576c38b4a72d67927a5e049f7
can: kvaser_usb: Don't dereference skb after a netif_rx()

We should not touch the packet after a netif_rx: it might
get freed behind our back.

Suggested-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Ahmed S. Darwish <ahmed.darwish@valeo.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/kvaser_usb.c