[PATCH 12/61] ALSA: Fix bug in snd-usb-usx2ys usX2Y_pcms_lock_check()
- From: Chris Wright <chrisw@xxxxxxxxxxxx>
- Date: Tue, 31 Oct 2006 21:33:52 -0800
-stable review patch. If anyone has any objections, please let us know.
------------------
From: Karsten Wiese <annabellesgarden@xxxxxxxx>
[PATCH] 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
From: Karsten Wiese <annabellesgarden@xxxxxxxx>
Signed-off-by: Karsten Wiese <annabellesgarden@xxxxxxxx>
Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
Signed-off-by: Chris Wright <chrisw@xxxxxxxxxxxx>
---
sound/usb/usx2y/usx2yhwdeppcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.18.1.orig/sound/usb/usx2y/usx2yhwdeppcm.c
+++ linux-2.6.18.1/sound/usb/usx2y/usx2yhwdeppcm.c
@@ -632,7 +632,7 @@ static int usX2Y_pcms_lock_check(struct
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;
}
}
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 00/61] 2.6.18-stable review
- From: Chris Wright
- [PATCH 00/61] 2.6.18-stable review
- Prev by Date: [PATCH 50/61] SPARC64: Fix PCI memory space root resource on Hummingbird.
- Next by Date: [PATCH 58/61] tcp: cubic scaling error
- Previous by thread: [PATCH 50/61] SPARC64: Fix PCI memory space root resource on Hummingbird.
- Next by thread: [PATCH 58/61] tcp: cubic scaling error
- Index(es):
Relevant Pages
|