aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2006-11-23 12:02:33 +0100
committerJaroslav Kysela <[email protected]>2006-12-20 08:55:59 +0100
commitc13893d7be4f159b359a1b7ee46b3646ecb2fe20 (patch)
tree3e4bb900eb0776f2a7cc4d36551459d86081c7c8 /include/linux/debugobjects.h
parenta48bb28c167b5cad1bd4978dbb83c89252caab78 (diff)
[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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions