diff options
author | Patrick McHardy <kaber@trash.net> | 2005-01-09 21:53:10 -0800 |
---|---|---|
committer | David S. Miller <davem@nuts.davemloft.net> | 2005-01-09 21:53:10 -0800 |
commit | ed340102a9f16b262360bbe81aba40c54501988e (patch) | |
tree | 8db641be33a5161e8e7c975283212f1174631b65 /net | |
parent | f2da974c81c106e232378b341df79cca61ba999b (diff) | |
download | history-ed340102a9f16b262360bbe81aba40c54501988e.tar.gz |
[PKT_SCHED]: ipt action: fix missing unlock on error path
Simply kill the pskb_expand_head, iptables targets already take care
of cloned packets.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/ipt.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/sched/ipt.c b/net/sched/ipt.c index d82151a366afb6..ad928b0b89b671 100644 --- a/net/sched/ipt.c +++ b/net/sched/ipt.c @@ -202,10 +202,6 @@ tcf_ipt(struct sk_buff **pskb, struct tc_action *a) p->bstats.bytes += skb->len; p->bstats.packets++; - if (skb_cloned(skb) ) { - if (pskb_expand_head(skb, 0, 0, GFP_ATOMIC)) - return -1; - } /* yes, we have to worry about both in and out dev worry later - danger - this API seems to have changed from earlier kernels */ |