diff options
author | Tejun Heo <tj@kernel.org> | 2011-07-14 15:19:09 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-08-04 10:17:56 +0200 |
commit | f59de8992aa6dc85e81aadc26b0f69e17809721d (patch) | |
tree | 4cdb87598edb67a774281bf3cea2800114d2fa0c /mm | |
parent | 83835b3d9aec8e9f666d8223d8a386814f756266 (diff) | |
download | op-kernel-dev-f59de8992aa6dc85e81aadc26b0f69e17809721d.zip op-kernel-dev-f59de8992aa6dc85e81aadc26b0f69e17809721d.tar.gz |
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>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions