Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129763
b: refs/heads/master
c: 7891cc8
h: refs/heads/master
i:
  129761: eda9819
  129759: aebb81d
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jan 14, 2009
1 parent acf5529 commit 9fea6f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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: 33966dd0e2f68f26943cd9ee93ec6abbc6547a8e
refs/heads/master: 7891cc818967e186be68caac32d84bfd0a3f0bd2
15 changes: 8 additions & 7 deletions trunk/net/ipv6/ip6_fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ static void fib6_dump_end(struct netlink_callback *cb)
struct fib6_walker_t *w = (void*)cb->args[2];

if (w) {
if (cb->args[4]) {
cb->args[4] = 0;
fib6_walker_unlink(w);
}
cb->args[2] = 0;
kfree(w);
}
Expand Down Expand Up @@ -330,15 +334,12 @@ static int fib6_dump_table(struct fib6_table *table, struct sk_buff *skb,
read_lock_bh(&table->tb6_lock);
res = fib6_walk_continue(w);
read_unlock_bh(&table->tb6_lock);
if (res != 0) {
if (res < 0)
fib6_walker_unlink(w);
goto end;
if (res <= 0) {
fib6_walker_unlink(w);
cb->args[4] = 0;
}
fib6_walker_unlink(w);
cb->args[4] = 0;
}
end:

return res;
}

Expand Down

0 comments on commit 9fea6f5

Please sign in to comment.