diff options
| author | Oliver Hartkopp <[email protected]> | 2014-01-30 09:11:28 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-01-31 00:25:49 +0000 |
| commit | 0ae89beb283a0db5980d1d4781c7d7be2f2810d6 (patch) | |
| tree | 70260be9219b03dbc8e96f852a8900db7845cbc9 /drivers/net/xen-netback/interface.c | |
| parent | net/vxlan: Go over all candidate streams for GRO matching (diff) | |
| download | kernel-0ae89beb283a0db5980d1d4781c7d7be2f2810d6.tar.gz kernel-0ae89beb283a0db5980d1d4781c7d7be2f2810d6.zip | |
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
376c7311bdb6 (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 <[email protected]>
Tested-by: Andre Naujoks <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
