Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218447
b: refs/heads/master
c: ebb9fed
h: refs/heads/master
i:
  218445: 364afe7
  218443: 0cbfff7
  218439: ea43fd4
  218431: 652f701
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 26, 2010
1 parent 84f9800 commit 92ff7fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 1941bf8c8d9392b18cd9bfed8050a2d78850aede
refs/heads/master: ebb9fed2defa55f2ca91c8be582c59612e9940d1
10 changes: 5 additions & 5 deletions trunk/net/core/fib_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,11 @@ static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)

fib_rule_get(rule);

if (last)
list_add_rcu(&rule->list, &last->list);
else
list_add_rcu(&rule->list, &ops->rules_list);

if (ops->unresolved_rules) {
/*
* There are unresolved goto rules in the list, check if
Expand All @@ -395,11 +400,6 @@ static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
if (unresolved)
ops->unresolved_rules++;

if (last)
list_add_rcu(&rule->list, &last->list);
else
list_add_rcu(&rule->list, &ops->rules_list);

notify_rule_change(RTM_NEWRULE, rule, ops, nlh, NETLINK_CB(skb).pid);
flush_route_cache(ops);
rules_ops_put(ops);
Expand Down

0 comments on commit 92ff7fa

Please sign in to comment.