aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/neighbour.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/neighbour.c')
-rw-r--r--net/core/neighbour.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index a16cf1ec5e5..4062b88bfc1 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -507,6 +507,7 @@ struct pneigh_entry * pneigh_lookup(struct neigh_table *tbl,
507 if (tbl->pconstructor && tbl->pconstructor(n)) { 507 if (tbl->pconstructor && tbl->pconstructor(n)) {
508 if (dev) 508 if (dev)
509 dev_put(dev); 509 dev_put(dev);
510 release_net(net);
510 kfree(n); 511 kfree(n);
511 n = NULL; 512 n = NULL;
512 goto out; 513 goto out;