android_kernel_samsung_a7y1.../sound/pci/ice1712
Takashi Iwai b5985f6f46 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-04-07 13:24:36 +02:00
..
ak4xxx.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
amp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
amp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aureon.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aureon.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
delta.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
delta.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
envy24ht.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ews.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ews.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hoontech.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hoontech.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ice1712.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ice1712.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ice1724.c ALSA: ice1724: Fix sleep-in-atomic in Infrasonic Quartet support code 2020-04-07 13:24:36 +02:00
juli.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
juli.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
maya44.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
maya44.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phase.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phase.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pontis.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pontis.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
prodigy_hifi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
prodigy_hifi.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
prodigy192.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
prodigy192.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
psc724.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
psc724.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
quartet.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
quartet.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
revo.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
revo.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
se.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
se.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
stac946x.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vt1720_mobo.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vt1720_mobo.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wm8766.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wm8766.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wm8776.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wm8776.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wtm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wtm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30