]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[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 a16cf1ec5e5ebe9fc100cb027c740c9387184472..4062b88bfc1b6fa7c598a2c5f66796cfac46c3f5 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;