projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.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
|
blame
|
history
diff --git
a/net/core/neighbour.c
b/net/core/neighbour.c
index a16cf1ec5e5ebe9fc100cb027c740c9387184472..4062b88bfc1b6fa7c598a2c5f66796cfac46c3f5 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;