android_kernel_xiaomi_sm7250/sound/pci/ice1712
Takashi Iwai fb6b15324d ALSA: ice1724: Fix sleep-in-atomic in Infrasonic Quartet support code
commit 0aec96f5897ac16ad9945f531b4bef9a2edd2ebd upstream.

Jia-Ju Bai reported a possible sleep-in-atomic scenario in the ice1724
driver with Infrasonic Quartet support code: namely, ice->set_rate
callback gets called inside ice->reg_lock spinlock, while the callback
in quartet.c holds ice->gpio_mutex.

This patch fixes the invalid call: it simply moves the calls of
ice->set_rate and ice->set_mclk callbacks outside the spinlock.

Reported-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/5d43135e-73b9-a46a-2155-9e91d0dcdf83@gmail.com
Link: https://lore.kernel.org/r/20191218192606.12866-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-09 10:18:59 +01:00
..
ak4xxx.c
amp.c
amp.h
aureon.c
aureon.h
delta.c
delta.h
envy24ht.h
ews.c
ews.h
hoontech.c
hoontech.h
ice1712.c
ice1712.h
ice1724.c
juli.c
juli.h
Makefile
maya44.c
maya44.h
phase.c
phase.h
pontis.c
pontis.h
prodigy192.c
prodigy192.h
prodigy_hifi.c
prodigy_hifi.h
psc724.c
psc724.h
quartet.c
quartet.h
revo.c
revo.h
se.c
se.h
stac946x.h
vt1720_mobo.c
vt1720_mobo.h
wm8766.c
wm8766.h
wm8776.c
wm8776.h
wtm.c
wtm.h