android_kernel_google_msm/net/can
Oliver Hartkopp 2932a0a1ab 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>
[lizf: Backported to 3.4:
 - adjust context
 - drop changes to alloc_canfd_skb(), as there's no such function]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-06-19 11:40:23 +08:00
..
af_can.c can: add missing initialisations in CAN related skbuffs 2015-06-19 11:40:23 +08:00
af_can.h can: remove references to berlios mailinglist 2011-10-17 19:22:46 -04:00
bcm.c can: bcm: initialize ifindex for timeouts without previous frame reception 2012-12-03 11:47:10 -08:00
gw.c can: gw: use kmem_cache_free() instead of kfree() 2013-04-12 09:38:47 -07:00
Kconfig can-gw: add netlink based CAN routing 2011-09-16 17:37:51 -04:00
Makefile can-gw: add netlink based CAN routing 2011-09-16 17:37:51 -04:00
proc.c can: remove references to berlios mailinglist 2011-10-17 19:22:46 -04:00
raw.c net: remove skb_orphan_try() 2012-07-16 09:03:48 -07:00