can: add missing initialisations in CAN related skbuffs
authorOliver Hartkopp <socketcan@hartkopp.net>
Mon, 23 Feb 2015 19:37:54 +0000 (20:37 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 9 Mar 2015 09:22:24 +0000 (10:22 +0100)
commit969439016d2cf61fef53a973d7e6d2061c3793b1
tree8320e446b2b0f31fd6ca77351ba6ba7b2f05d587
parentc247f0534cc5a5a547a343903f42295a471844e2
can: add missing initialisations in CAN related skbuffs

When accessing CAN network interfaces with AF_PACKET sockets e.g. by dhclient
this can lead to a skb_under_panic due to missing skb initialisations.

Add the missing initialisations at the CAN skbuff creation times on driver
level (rx path) and in the network layer (tx path).

Reported-by: Austin Schuh <austin@peloton-tech.com>
Reported-by: Daniel Steer <daniel.steer@mclaren.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev.c
net/can/af_can.c