projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4798178
)
sysctl: fix memset parameters in setup_sysctl_set()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Mon, 30 Jan 2012 13:40:29 +0000
(16:40 +0300)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Tue, 31 Jan 2012 03:14:08 +0000
(19:14 -0800)
The current code is a nop.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/proc/proc_sysctl.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/proc/proc_sysctl.c
b/fs/proc/proc_sysctl.c
index 1b1f5b8f4e0f8653091497f2b393a5032a441fd6..27e265ba1afed9268d684db4edc4684e4e357922 100644
(file)
--- a/
fs/proc/proc_sysctl.c
+++ b/
fs/proc/proc_sysctl.c
@@
-1547,7
+1547,7
@@
void setup_sysctl_set(struct ctl_table_set *set,
struct ctl_table_root *root,
int (*is_seen)(struct ctl_table_set *))
{
- memset(set,
sizeof(*set), 0
);
+ memset(set,
0, sizeof(*set)
);
set->is_seen = is_seen;
init_header(&set->dir.header, root, set, NULL, root_table);
}