summaryrefslogtreecommitdiff
path: root/fs/proc
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-01-30 13:40:29 (GMT)
committerEric W. Biederman <ebiederm@xmission.com>2012-01-31 03:14:08 (GMT)
commit1347440db6f76ec5ae0af8d8558387f571a5e1dd (patch)
tree0e22a9e3bc3cd480842a8797d55ba542b676ace2 /fs/proc
parent47981787092aecb87dc3cb2d478455dcfb77516a (diff)
downloadlinux-1347440db6f76ec5ae0af8d8558387f571a5e1dd.tar.xz
sysctl: fix memset parameters in setup_sysctl_set()
The current code is a nop. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/proc_sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index 1b1f5b8..27e265b 100644
--- 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);
}