Repository navigation
Commit f44e767
ALSA: emu10k1: don't deadlock in proc-functions
[ Upstream commit 91bf0c2 ]
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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>1 parent ef1eaae commit f44e767
1 file changed
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
245 | 244 | | |
246 | 245 | | |
247 | 246 | | |
248 | | - | |
249 | 247 | | |
250 | | - | |
251 | 248 | | |
252 | | - | |
253 | 249 | | |
254 | 250 | | |
255 | | - | |
256 | 251 | | |
257 | 252 | | |
258 | 253 | | |
259 | 254 | | |
260 | 255 | | |
261 | | - | |
262 | 256 | | |
263 | | - | |
264 | 257 | | |
265 | | - | |
266 | 258 | | |
267 | 259 | | |
268 | | - | |
269 | 260 | | |
270 | 261 | | |
271 | 262 | | |
| |||
410 | 401 | | |
411 | 402 | | |
412 | 403 | | |
413 | | - | |
414 | 404 | | |
415 | 405 | | |
416 | 406 | | |
417 | 407 | | |
418 | | - | |
419 | 408 | | |
420 | | - | |
421 | 409 | | |
422 | 410 | | |
423 | 411 | | |
| |||
0 commit comments