diff options
author | 2019-12-04 16:43:31 +0100 | |
---|---|---|
committer | 2019-12-24 23:56:16 +0000 | |
commit | 2859b1784031b5709446af8f6039c467f136e67d (patch) | |
tree | 55695dfc50545f4ee77be8fd45367631d445b739 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ASoC: core: Fix access to uninitialized list heads (diff) | |
download | wireguard-linux-2859b1784031b5709446af8f6039c467f136e67d.tar.xz wireguard-linux-2859b1784031b5709446af8f6039c467f136e67d.zip |
ASoC: stm32: spdifrx: fix inconsistent lock state
In current spdifrx driver locks may be requested as follows:
- request lock on iec capture control, when starting synchronization.
- request lock in interrupt context, when spdifrx stop is called
from IRQ handler.
Take lock with IRQs disabled, to avoid the possible deadlock.
Lockdep report:
[ 74.278059] ================================
[ 74.282306] WARNING: inconsistent lock state
[ 74.290120] --------------------------------
...
[ 74.314373] CPU0
[ 74.314377] ----
[ 74.314381] lock(&(&spdifrx->lock)->rlock);
[ 74.314396] <Interrupt>
[ 74.314400] lock(&(&spdifrx->lock)->rlock);
Fixes: 03e4d5d56fa5 ("ASoC: stm32: Add SPDIFRX support")
Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Link: https://lore.kernel.org/r/20191204154333.7152-2-olivier.moysan@st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions