aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorKarsten Wiese <annabellesgarden@yahoo.de>2006-10-04 11:16:46 -0400
committerJaroslav Kysela <perex@suse.cz>2006-10-06 14:23:01 -0400
commit9b08c2aa54948361da0e2d26b47e3bcb8f8911e8 (patch)
treed52df581096117e5cd75495f0defbdeebde0095b /sound/usb
parent104326f8df9925317cca64b84249d3eac5de7c74 (diff)
[ALSA] Fix bug in snd-usb-usx2y's usX2Y_pcms_lock_check()
Fix bug in snd-usb-usx2y's usX2Y_pcms_lock_check() substream can be NULL...... in mainline, bug was introduced by: 2006-06-22 [ALSA] Add O_APPEND flag support to PCM Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/usx2y/usx2yhwdeppcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/usx2y/usx2yhwdeppcm.c b/sound/usb/usx2y/usx2yhwdeppcm.c
index 9acef9d90543..20708d2ffb6a 100644
--- a/sound/usb/usx2y/usx2yhwdeppcm.c
+++ b/sound/usb/usx2y/usx2yhwdeppcm.c
@@ -632,7 +632,7 @@ static int usX2Y_pcms_lock_check(struct snd_card *card)
632 for (s = 0; s < 2; ++s) { 632 for (s = 0; s < 2; ++s) {
633 struct snd_pcm_substream *substream; 633 struct snd_pcm_substream *substream;
634 substream = pcm->streams[s].substream; 634 substream = pcm->streams[s].substream;
635 if (SUBSTREAM_BUSY(substream)) 635 if (substream && SUBSTREAM_BUSY(substream))
636 err = -EBUSY; 636 err = -EBUSY;
637 } 637 }
638 } 638 }