mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 11:53:01 +00:00
sysctl: Don't scan for the leaks on headers
These header allocations have life cycle till the device goes shutdown. So, considering them as leak is false positive. Remove them by marking kmemleak_not_leak CRs-Fixed: 466552 Change-Id: Id1571b78365e533ddfe866d45cef8f89b0b62bc7 Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
This commit is contained in:
parent
02dfa6dfc8
commit
b466f347d7
|
@ -11,6 +11,7 @@
|
|||
#include <linux/namei.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/kmemleak.h>
|
||||
#include "internal.h"
|
||||
|
||||
static const struct dentry_operations proc_sys_dentry_operations;
|
||||
|
@ -1207,6 +1208,8 @@ struct ctl_table_header *__register_sysctl_table(
|
|||
if (!header)
|
||||
return NULL;
|
||||
|
||||
kmemleak_not_leak(header);
|
||||
|
||||
node = (struct ctl_node *)(header + 1);
|
||||
init_header(header, root, set, node, table);
|
||||
if (sysctl_check_table(path, table))
|
||||
|
|
Loading…
Reference in a new issue