[NETNS]: Namespace leak in pneigh_lookup.
authorDenis V. Lunev <den@openvz.org>
Wed, 20 Feb 2008 08:26:16 +0000 (00:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Feb 2008 08:26:16 +0000 (00:26 -0800)
release_net is missed on the error path in pneigh_lookup.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c

index a16cf1e..4062b88 100644 (file)
@@ -507,6 +507,7 @@ struct pneigh_entry * pneigh_lookup(struct neigh_table *tbl,
        if (tbl->pconstructor && tbl->pconstructor(n)) {
                if (dev)
                        dev_put(dev);
+               release_net(net);
                kfree(n);
                n = NULL;
                goto out;