diff options
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index f7f42c3e96cb..9a71a8d1078a 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -1701,10 +1701,8 @@ static void fib6_dump_end(struct netlink_callback *cb) | |||
1701 | fib6_walker_unlink(w); | 1701 | fib6_walker_unlink(w); |
1702 | kfree(w); | 1702 | kfree(w); |
1703 | } | 1703 | } |
1704 | if (cb->args[1]) { | 1704 | cb->done = (void*)cb->args[1]; |
1705 | cb->done = (void*)cb->args[1]; | 1705 | cb->args[1] = 0; |
1706 | cb->args[1] = 0; | ||
1707 | } | ||
1708 | } | 1706 | } |
1709 | 1707 | ||
1710 | static int fib6_dump_done(struct netlink_callback *cb) | 1708 | static int fib6_dump_done(struct netlink_callback *cb) |
@@ -1734,7 +1732,7 @@ int inet6_dump_fib(struct sk_buff *skb, struct netlink_callback *cb) | |||
1734 | /* | 1732 | /* |
1735 | * 2. allocate and initialize walker. | 1733 | * 2. allocate and initialize walker. |
1736 | */ | 1734 | */ |
1737 | w = kmalloc(sizeof(*w), GFP_ATOMIC); | 1735 | w = kmalloc(sizeof(*w), GFP_KERNEL); |
1738 | if (w == NULL) | 1736 | if (w == NULL) |
1739 | return -ENOMEM; | 1737 | return -ENOMEM; |
1740 | RT6_TRACE("dump<%p", w); | 1738 | RT6_TRACE("dump<%p", w); |