]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit38cc2948581d99068376ad1cc04a60124832fed2
treeea48a4ea309a0f9c69dbf0949b52a8a763585156
parent58d0ed6356800f0bfe67c317ab2749493f1fa949
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