Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327404
b: refs/heads/master
c: ad5b310
h: refs/heads/master
v: v3
  • Loading branch information
Igor Maravic authored and David S. Miller committed Aug 14, 2012
1 parent b1ec5df commit acabfba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 418a99ac6ad487dc9c42e6b0e85f941af56330f2
refs/heads/master: ad5b310228da567e35a2ea5dcb2fd62e3a36654e
10 changes: 6 additions & 4 deletions trunk/net/ipv4/fib_trie.c
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,12 @@ int fib_table_delete(struct fib_table *tb, struct fib_config *cfg)
if (!l)
return -ESRCH;

fa_head = get_fa_head(l, plen);
li = find_leaf_info(l, plen);

if (!li)
return -ESRCH;

fa_head = &li->falh;
fa = fib_find_alias(fa_head, tos, 0);

if (!fa)
Expand Down Expand Up @@ -1692,9 +1697,6 @@ int fib_table_delete(struct fib_table *tb, struct fib_config *cfg)
rtmsg_fib(RTM_DELROUTE, htonl(key), fa, plen, tb->tb_id,
&cfg->fc_nlinfo, 0);

l = fib_find_node(t, key);
li = find_leaf_info(l, plen);

list_del_rcu(&fa->fa_list);

if (!plen)
Expand Down

0 comments on commit acabfba

Please sign in to comment.