Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321496
b: refs/heads/master
c: 47fd92f
h: refs/heads/master
v: v3
  • Loading branch information
Hiroaki SHIMODA authored and David S. Miller committed Aug 6, 2012
1 parent e463cf9 commit ecd2a0b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9871f1ad677d95ffeca80e2c21b70af9bfc9cc91
refs/heads/master: 47fd92f5a76eb3f5b407773766e7d7fa1a179419
7 changes: 6 additions & 1 deletion trunk/net/sched/act_ipt.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,12 @@ static int tcf_ipt_init(struct nlattr *nla, struct nlattr *est,
err2:
kfree(tname);
err1:
kfree(pc);
if (ret == ACT_P_CREATED) {
if (est)
gen_kill_estimator(&pc->tcfc_bstats,
&pc->tcfc_rate_est);
kfree_rcu(pc, tcfc_rcu);
}
return err;
}

Expand Down
5 changes: 4 additions & 1 deletion trunk/net/sched/act_pedit.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ static int tcf_pedit_init(struct nlattr *nla, struct nlattr *est,
p = to_pedit(pc);
keys = kmalloc(ksize, GFP_KERNEL);
if (keys == NULL) {
kfree(pc);
if (est)
gen_kill_estimator(&pc->tcfc_bstats,
&pc->tcfc_rate_est);
kfree_rcu(pc, tcfc_rcu);
return -ENOMEM;
}
ret = ACT_P_CREATED;
Expand Down
5 changes: 4 additions & 1 deletion trunk/net/sched/act_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ static int tcf_simp_init(struct nlattr *nla, struct nlattr *est,
d = to_defact(pc);
ret = alloc_defdata(d, defdata);
if (ret < 0) {
kfree(pc);
if (est)
gen_kill_estimator(&pc->tcfc_bstats,
&pc->tcfc_rate_est);
kfree_rcu(pc, tcfc_rcu);
return ret;
}
d->tcf_action = parm->action;
Expand Down

0 comments on commit ecd2a0b

Please sign in to comment.