projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net_sched: act: Dont increment refcnt on replace
[cascardo/linux.git]
/
net
/
sched
/
act_ipt.c
diff --git
a/net/sched/act_ipt.c
b/net/sched/act_ipt.c
index
882a897
..
dcbfe8c
100644
(file)
--- a/
net/sched/act_ipt.c
+++ b/
net/sched/act_ipt.c
@@
-141,10
+141,12
@@
static int tcf_ipt_init(struct net *net, struct nlattr *nla, struct nlattr *est,
return PTR_ERR(pc);
ret = ACT_P_CREATED;
} else {
- if (!ovr) {
- tcf_ipt_release(to_ipt(pc), bind);
+ if (bind)/* dont override defaults */
+ return 0;
+ tcf_ipt_release(to_ipt(pc), bind);
+
+ if (!ovr)
return -EEXIST;
- }
}
ipt = to_ipt(pc);