diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-04-20 16:08:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-22 01:54:08 -0400 |
commit | 9a20e3197e7f6097897c6d1f18335a326ee06299 (patch) | |
tree | 607961225afba3dad014e857797881070d915be0 /net | |
parent | a7c561f2e32f98b477f5fe670b3f294be6b1eae2 (diff) |
net: Introduce skb_orphan_try()
At this point, skb->destructor is not the original one (stored in
DEV_GSO_CB(skb)->destructor)
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index e904c476b112..9bf1cccb067e 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1937,7 +1937,6 @@ gso: | |||
1937 | if (dev->priv_flags & IFF_XMIT_DST_RELEASE) | 1937 | if (dev->priv_flags & IFF_XMIT_DST_RELEASE) |
1938 | skb_dst_drop(nskb); | 1938 | skb_dst_drop(nskb); |
1939 | 1939 | ||
1940 | skb_orphan_try(nskb); | ||
1941 | rc = ops->ndo_start_xmit(nskb, dev); | 1940 | rc = ops->ndo_start_xmit(nskb, dev); |
1942 | if (unlikely(rc != NETDEV_TX_OK)) { | 1941 | if (unlikely(rc != NETDEV_TX_OK)) { |
1943 | if (rc & ~NETDEV_TX_MASK) | 1942 | if (rc & ~NETDEV_TX_MASK) |