aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2019-07-03 09:21:26 +0000
committerIngo Molnar <[email protected]>2019-07-25 13:39:27 +0000
commit6c11c6e3d5e9e5caf8686cd6a5e4552cfc3ea326 (patch)
tree3c46421fccf883ceb83abb0b2f42a1a0c662a26b /tools/perf/scripts/python/stat-cpi.py
parentlocking/lockdep: Clean up #ifdef checks (diff)
downloadkernel-6c11c6e3d5e9e5caf8686cd6a5e4552cfc3ea326.tar.gz
kernel-6c11c6e3d5e9e5caf8686cd6a5e4552cfc3ea326.zip
locking/mutex: Test for initialized mutex
An uninitialized/ zeroed mutex will go unnoticed because there is no check for it. There is a magic check in the unlock's slowpath path which might go unnoticed if the unlock happens in the fastpath. Add a ->magic check early in the mutex_lock() and mutex_trylock() path. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Will Deacon <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions