linux-sg2042/include/linux/can
Oliver Hartkopp 0ae89beb28 can: add destructor for self generated skbs
Self generated skbuffs in net/can/bcm.c are setting a skb->sk reference but
no explicit destructor which is enforced since Linux 3.11 with commit
376c7311bd (net: add a temporary sanity check in skb_orphan()).

This patch adds some helper functions to make sure that a destructor is
properly defined when a sock reference is assigned to a CAN related skb.
To create an unshared skb owned by the original sock a common helper function
has been introduced to replace open coded functions to create CAN echo skbs.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Tested-by: Andre Naujoks <nautsch2@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-01-30 16:25:49 -08:00
..
platform can: mcp251x: Eliminate irq_flags from driver platform_data 2013-08-21 09:28:29 +02:00
core.h canfd: add support for CAN FD in PF_CAN core 2012-06-19 21:40:01 +02:00
dev.h can: export a safe netdev_priv wrapper for candev 2013-01-26 16:58:59 +01:00
led.h can: rename LED trigger name on netdev renames 2013-01-26 16:58:59 +01:00
skb.h can: add destructor for self generated skbs 2014-01-30 16:25:49 -08:00