linux-stable-rt/sound/drivers
Jon Masters 962f831f67 [PATCH] sound: fix hang in mpu401_uart.c
This fixes a hang in mpu401_uart.c that can occur when the mpu401 interface
is non-existent or otherwise doesn't respond to commands but we issue IO
anyway.  snd_mpu401_uart_cmd now returns an error code that is passed up
the stack so that an open() will fail immediately in such cases.

Eventually discovered after wine/cxoffice would constantly cause hard
lockups on my desktop immediately after loading (emulating Windows too
well).  Turned out that I'd recently moved my sound cards around and using
/dev/sequencer now talks to a sound card with a broken MPU.

This second version changes -EFAULT to -EIO and frees open resources on
error too.  Test booted and seems to work ok.

Signed-off-by: Jon Masters <jcm@jonmasters.org>
Cc: Jaroslav Kysela <perex@suse.cz>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-04-20 07:54:04 -07:00
..
mpu401 [PATCH] sound: fix hang in mpu401_uart.c 2006-04-20 07:54:04 -07:00
opl3 [ALSA] Fix use after free in opl3_seq and opl3_oss 2006-03-22 10:36:15 +01:00
opl4
vx [ALSA] vx - Fix memory leak on error path 2006-03-22 10:34:50 +01:00
Kconfig
Makefile
dummy.c [ALSA] Fix check of enable module option 2006-03-22 10:30:43 +01:00
mtpav.c
serial-u16550.c [ALSA] fix some memory leaks 2006-03-22 10:38:23 +01:00
virmidi.c [ALSA] Fix check of enable module option 2006-03-22 10:30:43 +01:00