Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efacfbcb authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller
Browse files

[IPV6]: Fix rtnetlink dump infinite loop



The recent change to netlink dump "done" callback handling broke IPv6
which played dirty tricks with the "done" callback.  This causes an
infinite loop during a dump.

The following patch fixes it.

This bug was reported by Jeff Garzik.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4f005551
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1701,11 +1701,9 @@ static void fib6_dump_end(struct netlink_callback *cb)
		fib6_walker_unlink(w);
		kfree(w);
	}
	if (cb->args[1]) {
	cb->done = (void*)cb->args[1];
	cb->args[1] = 0;
}
}

static int fib6_dump_done(struct netlink_callback *cb)
{