param: fix uninitialized read with CONFIG_DEBUG_LOCK_ALLOC
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 19 Jan 2015 22:37:04 +0000 (09:07 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Jan 2015 01:08:31 +0000 (11:38 +1030)
commitc772be52319de9756fd82f36d37a6d3e003441e3
treeea48a4ea309a0f9c69dbf0949b52a8a763585156
parent574732c73d155320f9358d9ee5d84beb0f4ecee2
param: fix uninitialized read with CONFIG_DEBUG_LOCK_ALLOC

ignore_lockdep is uninitialized, and sysfs_attr_init() doesn't initialize
it, so memset to 0.

Reported-by: Huang Ying <ying.huang@intel.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/params.c