]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: skb_orphan() changes
authorEric Dumazet <edumazet@google.com>
Tue, 30 Jul 2013 23:11:15 +0000 (16:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2013 22:24:08 +0000 (15:24 -0700)
commitc34a761231b56dea4bd205cb9c29ffe37475d232
tree43f6880f06f781f2fa10ee54be32c426f9b58620
parentf2f872f9272a79a1048877ea14c15576f46c225e
net: skb_orphan() changes

It is illegal to set skb->sk without corresponding destructor.

Its therefore safe for skb_orphan() to not clear skb->sk if
skb->destructor is not set.

Also avoid clearing skb->destructor if already NULL.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h