Update of /cvsroot/alsa/alsa-kernel/isa/gus
In directory sc8-pr-cvs1:/tmp/cvs-serv16960

Modified Files:
        gus_pcm.c 
Log Message:
Fixed race - scheduling in interrupt

Index: gus_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/gus/gus_pcm.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- gus_pcm.c   17 Nov 2003 10:23:40 -0000      1.17
+++ gus_pcm.c   20 Dec 2003 09:31:32 -0000      1.18
@@ -334,9 +334,11 @@
                                        snd_gf1_poke(gus, pos++, *buf++ ^ invert);
                        }
                }
-               schedule_timeout(1);
-               if (signal_pending(current))
-                       return -EAGAIN;
+               if (count > 0 && !in_interrupt()) {
+                       schedule_timeout(1);
+                       if (signal_pending(current))
+                               return -EAGAIN;
+               }
        }
        return 0;
 }



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to