]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
can: add missing initialisations in CAN related skbuffs
authorOliver Hartkopp <socketcan@hartkopp.net>
Mon, 23 Feb 2015 19:37:54 +0000 (20:37 +0100)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 11:14:05 +0000 (13:14 +0200)
commitc05e616077bdfb6bf9903ec45de55dedd03fce81
treec056eccc128e3a318eccf4beaa749837866b50e0
parent6be916ce95ab1159dea6e6bc89f465ee758f4e0d
can: add missing initialisations in CAN related skbuffs

commit 969439016d2cf61fef53a973d7e6d2061c3793b1 upstream.

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>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/can/dev.c
net/can/af_can.c