From a86aabd412344c19fb41a11e44994ded4efd04c0 Mon Sep 17 00:00:00 2001 From: Akinobu Mita Date: Thu, 23 Nov 2006 12:03:24 +0100 Subject: [PATCH] --- yaml --- r: 44731 b: refs/heads/master c: 4d361285925613516560f81f8c7fc96b89c8b1a8 h: refs/heads/master i: 44729: 33cb4cdaa3eab9a3bc2cad38ff7f2f93b803e54f 44727: e0b950a839190fbcfcd941f9b4245604f2eba02f v: v3 --- [refs] | 2 +- trunk/sound/core/pcm.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index c259559a882e..d85bfefa0e80 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c13893d7be4f159b359a1b7ee46b3646ecb2fe20 +refs/heads/master: 4d361285925613516560f81f8c7fc96b89c8b1a8 diff --git a/trunk/sound/core/pcm.c b/trunk/sound/core/pcm.c index 5ac6e19ccb41..8e0189885516 100644 --- a/trunk/sound/core/pcm.c +++ b/trunk/sound/core/pcm.c @@ -640,6 +640,10 @@ int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count) err = snd_pcm_substream_proc_init(substream); if (err < 0) { snd_printk(KERN_ERR "Error in snd_pcm_stream_proc_init\n"); + if (prev == NULL) + pstr->substream = NULL; + else + prev->next = NULL; kfree(substream); return err; }