projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: Add skb_unclone() helper function.
[deliverable/linux.git]
/
net
/
sched
/
act_ipt.c
diff --git
a/net/sched/act_ipt.c
b/net/sched/act_ipt.c
index 0fb9e3f567e62340ee5b3d707d34591e54e7c7f2..e0f6de64afeca84c5400603672b4b84a11cf643d 100644
(file)
--- a/
net/sched/act_ipt.c
+++ b/
net/sched/act_ipt.c
@@
-207,10
+207,8
@@
static int tcf_ipt(struct sk_buff *skb, const struct tc_action *a,
struct tcf_ipt *ipt = a->priv;
struct xt_action_param par;
- if (skb_cloned(skb)) {
- if (pskb_expand_head(skb, 0, 0, GFP_ATOMIC))
- return TC_ACT_UNSPEC;
- }
+ if (skb_unclone(skb, GFP_ATOMIC))
+ return TC_ACT_UNSPEC;
spin_lock(&ipt->tcf_lock);
This page took
0.028627 seconds
and
5
git commands to generate.