diff options
author | Michael Gernoth <michael@gernoth.net> | 2015-04-10 00:42:15 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-10 14:02:23 +0300 |
commit | 91bf0c2dcb935a87e5c0795f5047456b965fd143 (patch) | |
tree | ec91242a6c5756eb131a9cd6ecc4252a4b8185b8 /lib/dec_and_lock.c | |
parent | 3dc8523fa7412e731441c01fb33f003eb3cfece1 (diff) | |
download | linux-91bf0c2dcb935a87e5c0795f5047456b965fd143.tar.xz |
ALSA: emu10k1: don't deadlock in proc-functions
The functions snd_emu10k1_proc_spdif_read and snd_emu1010_fpga_read
acquire the emu_lock before accessing the FPGA. The function used
to access the FPGA (snd_emu1010_fpga_read) also tries to take
the emu_lock which causes a deadlock.
Remove the outer locking in the proc-functions (guarding only the
already safe fpga read) to prevent this deadlock.
[removed superfluous flags variables too -- tiwai]
Signed-off-by: Michael Gernoth <michael@gernoth.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'lib/dec_and_lock.c')
0 files changed, 0 insertions, 0 deletions