diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2021-08-06 12:35:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-07 09:35:48 +0100 |
commit | 34737e1320db6d51f0d140d5c684b9eb32f0da76 (patch) | |
tree | f068ad4f54db333014c758a47f5f66d979a5e4a5 /sound/core/timer.c | |
parent | 47fac45600aafc5939d9620055c3c46f7135d316 (diff) |
net: wwan: mhi_wwan_ctrl: Fix possible deadlock
Lockdep detected possible interrupt unsafe locking scenario:
CPU0 CPU1
---- ----
lock(&mhiwwan->rx_lock);
local_irq_disable();
lock(&mhi_cntrl->pm_lock);
lock(&mhiwwan->rx_lock);
<Interrupt>
lock(&mhi_cntrl->pm_lock);
*** DEADLOCK ***
To prevent this we need to disable the soft-interrupts when taking
the rx_lock.
Cc: stable@vger.kernel.org
Fixes: fa588eba632d ("net: Add Qcom WWAN control driver")
Reported-by: Thomas Perrot <thomas.perrot@bootlin.com>
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/core/timer.c')
0 files changed, 0 insertions, 0 deletions