Skip to content

Commit

Permalink
sysctl: fix memset parameters in setup_sysctl_set()
Browse files Browse the repository at this point in the history
The current code is a nop.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
  • Loading branch information
Dan Carpenter authored and Eric W. Biederman committed Jan 31, 2012
1 parent 4798178 commit 1347440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/proc/proc_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1347440

Please sign in to comment.