Skip to content

Commit

Permalink
net/core:Remove memleak reports by kmemleak_not_leak.
Browse files Browse the repository at this point in the history
Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
majianpeng authored and David S. Miller committed Apr 18, 2012
1 parent 7f59388 commit 798ec84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/sysctl_net_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ static __init int sysctl_core_init(void)
{
static struct ctl_table empty[1];

register_sysctl_paths(net_core_path, empty);
kmemleak_not_leak(register_sysctl_paths(net_core_path, empty));
register_net_sysctl_rotable(net_core_path, net_core_table);
return register_pernet_subsys(&sysctl_core_ops);
}
Expand Down

0 comments on commit 798ec84

Please sign in to comment.