projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f31886
)
[NETNS]: Namespace leak in pneigh_lookup.
author
Denis V. Lunev
<den@openvz.org>
Wed, 20 Feb 2008 08:26:16 +0000
(
00:26
-0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/core/neighbour.c
b/net/core/neighbour.c
index
a16cf1e
..
4062b88
100644
(file)
--- a/
net/core/neighbour.c
+++ b/
net/core/neighbour.c
@@
-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;