]> git.baikalelectronics.ru Git - kernel.git/commit
lockdep: Clear whole lockdep_map on initialization
authorTejun Heo <tj@kernel.org>
Thu, 14 Jul 2011 13:19:09 +0000 (15:19 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Aug 2011 08:17:56 +0000 (10:17 +0200)
commit702729f09e8f02a8b9e02e8c40ed62b62b6428a5
tree4cdb87598edb67a774281bf3cea2800114d2fa0c
parent221d0dfca89b7c6c9e4dd2edb4a43f519362b02b
lockdep: Clear whole lockdep_map on initialization

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-and-tested-by: Christian Casteyde <casteyde.christian@free.fr>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=35532
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110714131909.GJ3455@htj.dyndns.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/lockdep.c