aboutsummaryrefslogtreecommitdiffstats
path: root/sound/aoa
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2006-11-23 12:02:33 +0100
committerJaroslav Kysela <perex@server.perex.cz>2006-12-20 08:55:59 +0100
commitc13893d7be4f159b359a1b7ee46b3646ecb2fe20 (patch)
tree3e4bb900eb0776f2a7cc4d36551459d86081c7c8 /sound/aoa
parent[ALSA] snd_hda_intel 3stack mode for ASUS P5P-L2 (diff)
downloadlinux-dev-c13893d7be4f159b359a1b7ee46b3646ecb2fe20.tar.xz
linux-dev-c13893d7be4f159b359a1b7ee46b3646ecb2fe20.zip
[ALSA] sound: initialize rawmidi substream list
If snd_rawmidi_new() failed to allocate substreams for input (snd_rawmidi_alloc_substreams() failed to populate a &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]), it will try to free rawmidi instance by snd_rawmidi_free(). But it will cause oops because snd_rawmidi_free() tries to free both of substreams list but list for output (&rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]) is not initialized yet. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/aoa')
0 files changed, 0 insertions, 0 deletions