summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-fsl-cpm.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2019-07-03 11:21:26 +0200
committerIngo Molnar <mingo@kernel.org>2019-07-25 15:39:27 +0200
commit6c11c6e3d5e9e5caf8686cd6a5e4552cfc3ea326 (patch)
tree3c46421fccf883ceb83abb0b2f42a1a0c662a26b /drivers/spi/spi-fsl-cpm.c
parent30a35f79faadfeb1b89a7fdb3875f14063519041 (diff)
downloadlinux-6c11c6e3d5e9e5caf8686cd6a5e4552cfc3ea326.tar.gz
linux-6c11c6e3d5e9e5caf8686cd6a5e4552cfc3ea326.tar.bz2
linux-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 <bigeasy@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Will Deacon <will@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20190703092125.lsdf4gpsh2plhavb@linutronix.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/spi/spi-fsl-cpm.c')
0 files changed, 0 insertions, 0 deletions