Archived
14
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/sound
Arjan van de Ven 4b47c971dc es1968: fix sleep-while-holding-lock bug
snd_es1968_ac97_read() calls snd_es1968_ac97_wait() first outside a locked
area, and later, while holding a lock.

snd_es1968_ac97_wait() has a polling loop with a cond_resched() inside it..
which sleeps, so the second call is invalid.

This patch adds a version of the wait function that just pure polls.  While
this is not very elegant in principle, it's very likely the easiest thing to
do here, we already checked if the chip was ready (while yielding) just
before, so it is very unlikely to take a long time here.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Jaroslav Kysela <perex@suse.cz>
Cc: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-08 18:25:53 -07:00
..
aoa
arm
core Dont touch fs_struct in drivers 2008-02-14 21:13:32 -08:00
drivers [ALSA] opl3 - Fix compilation without sequencer support 2008-02-22 14:20:08 -08:00
i2c
isa [ALSA] sb8: fix SB 1.0 capture DMA programming 2008-02-29 11:28:15 +01:00
mips
oss sound/oss/ac97_codec.c: restore MODULE_LICENSE 2008-03-30 14:46:11 -07:00
parisc
pci es1968: fix sleep-while-holding-lock bug 2008-04-08 18:25:53 -07:00
pcmcia
ppc Dont touch fs_struct in drivers 2008-02-14 21:13:32 -08:00
sh
soc ASoC/TLV320AIC3X: Stop I2C driver ID abuse 2008-03-23 20:28:20 +01:00
sparc
spi
synth
usb USB: usbaudio: handle kcalloc failure 2008-03-10 16:42:25 -07:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c
sound_firmware.c