forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
4798178709
commit
1347440db6
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user