提交 1347440d 编写于 作者: D Dan Carpenter 提交者: Eric W. Biederman

sysctl: fix memset parameters in setup_sysctl_set()

The current code is a nop.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
上级 47981787
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册