summaryrefslogtreecommitdiff
path: root/mm/compaction.c
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2016-03-18 13:15:11 +0300
committerMark Brown <broonie@kernel.org>2016-03-18 13:37:09 +0300
commit24c8cd1b081286fd34340f0e1fc68a774a5a775f (patch)
treeca4565ebd4913413129ba626bd5d823c767bc0ec /mm/compaction.c
parentc508709bcffb644afbf5e5016fc7c90bf80c30ff (diff)
downloadlinux-24c8cd1b081286fd34340f0e1fc68a774a5a775f.tar.xz
spi: fix possible deadlock between internal bus locks and bus_lock_flag
External users may use spi_bus_lock to get exclusive access. This will also grab the bus_lock_mutex and may therefore result in a deadlock if __spi_pump_messages also tries to get the mutex. Therefore adapt spi_pump_messages as well as spi_sync to preset the bus_locked parameter according to the master->bus_lock_flag. Fixes: 49023d2e4ead ("spi: core: Fix deadlock when sending messages") Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'mm/compaction.c')
0 files changed, 0 insertions, 0 deletions