diff options
author | majianpeng <majianpeng@gmail.com> | 2012-04-16 15:58:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-18 00:20:28 -0400 |
commit | 798ec84d45754403571d6387396236e877965c5a (patch) | |
tree | 7f1c573b784c480a4ebfc1129ff916952e5a66ef | |
parent | 7f593881089084640bffeb93c9cc49077afcec81 (diff) |
net/core:Remove memleak reports by kmemleak_not_leak.
Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/sysctl_net_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index 0c2850874254..cee599190261 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c | |||
@@ -256,7 +256,7 @@ static __init int sysctl_core_init(void) | |||
256 | { | 256 | { |
257 | static struct ctl_table empty[1]; | 257 | static struct ctl_table empty[1]; |
258 | 258 | ||
259 | register_sysctl_paths(net_core_path, empty); | 259 | kmemleak_not_leak(register_sysctl_paths(net_core_path, empty)); |
260 | register_net_sysctl_rotable(net_core_path, net_core_table); | 260 | register_net_sysctl_rotable(net_core_path, net_core_table); |
261 | return register_pernet_subsys(&sysctl_core_ops); | 261 | return register_pernet_subsys(&sysctl_core_ops); |
262 | } | 262 | } |