can: add missing initialisations in CAN related skbuffs
authorOliver Hartkopp <socketcan@hartkopp.net>
Mon, 23 Feb 2015 19:37:54 +0000 (20:37 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 28 Mar 2015 13:37:33 +0000 (09:37 -0400)
commit9baee042462d0d5df166bab8a10c06ca3b8f2d0b
tree34558921f2909fe9b57484fb29db9adda57100b6
parent24cc23d3afc97e8fdbb82fabd80a270813268654
can: add missing initialisations in CAN related skbuffs

[ Upstream commit 969439016d2cf61fef53a973d7e6d2061c3793b1 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/net/can/dev.c
net/can/af_can.c