[alsa-devel] Crash 2.6.32.x, Echo 3G, Alsa, SCSI

Frederick V Heitkamp heitkamp at ameritech.net
Wed Feb 3 03:53:54 CET 2010

There is another possible fix. I tested it briefly. It looks ok wrt race
conditions because pipe->state is set only in the trigger callback. I hope
I didn't overlook anything again...

Signed-off-by: Giuliano Pochini <pochini at shiny.it>

--- alsa-driver-    2010-02-02 22:37:33.000000000 +0100
+++ alsa-driver-    2010-02-02 22:44:03.000000000 +0100
@@ -1821,7 +1821,9 @@ static irqreturn_t snd_echo_interrupt(in
    /* The hardware doesn't tell us which substream caused the irq,
    thus we have to check all running substreams. */
    for (ss = 0; ss < DSP_MAXPIPES; ss++) {
-        if ((substream = chip->substream[ss])) {
+        substream = chip->substream[ss];
+        if (substream && ((struct audiopipe *)substream->runtime->
+                private_data)->state == PIPE_STATE_STARTED) {
            period = pcm_pointer(substream) /
            if (period != chip->last_period[ss]) {


I am using this patch.  So far, no crash.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

More information about the Alsa-devel mailing list