git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[ALSA] Fix bug in snd-usb-usx2y's usX2Y_pcms_lock_check()
[pandora-kernel.git]
/
sound
/
usb
/
usx2y
/
usx2yhwdeppcm.c
diff --git
a/sound/usb/usx2y/usx2yhwdeppcm.c
b/sound/usb/usx2y/usx2yhwdeppcm.c
index
9acef9d
..
20708d2
100644
(file)
--- 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)
for (s = 0; s < 2; ++s) {
struct snd_pcm_substream *substream;
substream = pcm->streams[s].substream;
- if (SUBSTREAM_BUSY(substream))
+ if (
substream &&
SUBSTREAM_BUSY(substream))
err = -EBUSY;
}
}