Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108379
b: refs/heads/master
c: f97017c
h: refs/heads/master
i:
  108377: 1b2b63b
  108375: 793b60e
v: v3
  • Loading branch information
Jamal Hadi Salim authored and David S. Miller committed Aug 13, 2008
1 parent f48e4ed commit 9b456ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 34093d055e09d1bb549efc11c8d448373437bbe4
refs/heads/master: f97017cdefefdb6a0e19266024b0c6f9fd411eeb
9 changes: 7 additions & 2 deletions trunk/net/sched/act_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,8 @@ static int tca_action_flush(struct nlattr *nla, struct nlmsghdr *n, u32 pid)
err = a->ops->walk(skb, &dcb, RTM_DELACTION, a);
if (err < 0)
goto nla_put_failure;
if (err == 0)
goto noflush_out;

nla_nest_end(skb, nest);

Expand All @@ -807,6 +809,7 @@ static int tca_action_flush(struct nlattr *nla, struct nlmsghdr *n, u32 pid)
nlmsg_failure:
module_put(a->ops->owner);
err_out:
noflush_out:
kfree_skb(skb);
kfree(a);
return err;
Expand All @@ -824,8 +827,10 @@ tca_action_gd(struct nlattr *nla, struct nlmsghdr *n, u32 pid, int event)
return ret;

if (event == RTM_DELACTION && n->nlmsg_flags&NLM_F_ROOT) {
if (tb[0] != NULL && tb[1] == NULL)
return tca_action_flush(tb[0], n, pid);
if (tb[1] != NULL)
return tca_action_flush(tb[1], n, pid);
else
return -EINVAL;
}

for (i = 1; i <= TCA_ACT_MAX_PRIO && tb[i]; i++) {
Expand Down

0 comments on commit 9b456ea

Please sign in to comment.