]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lockdep_init_map() only initializes parts of lockdep_map and triggers
authorTejun Heo <tj@kernel.org>
Wed, 3 Aug 2011 00:52:34 +0000 (10:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Aug 2011 04:17:34 +0000 (14:17 +1000)
commit85ac2bcd0736253908ada3c52857261bc234d83a
tree7d2df45f78694f913808592059ca10530a7b5a2a
parent0d09e46e3425f8aef0b7c61981394b969d055616
lockdep_init_map() only initializes parts of lockdep_map and triggers
kmemcheck warning when it is copied as a whole.  There isn't anything to
be gained by clearing selectively.  memset() the whole structure and
remove loop for ->class_cache[] clearing.

Addresses https://bugzilla.kernel.org/show_bug.cgi?id=35532

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Christian Casteyde <casteyde.christian@free.fr>
Tested-by: Christian Casteyde <casteyde.christian@free.fr>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/lockdep.c