Update of /cvsroot/alsa/alsa-kernel/core
In directory sc8-pr-cvs1:/tmp/cvs-serv8416

Modified Files:
        timer.c 
Log Message:
fixed an unblanced spinlock.



Index: timer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/timer.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- timer.c     18 Jun 2003 10:51:39 -0000      1.43
+++ timer.c     17 Jul 2003 10:23:59 -0000      1.44
@@ -1690,10 +1690,11 @@
                                break;
                        }
                }
-               spin_unlock_irq(&tu->qlock);
                if (err < 0)
                        break;
 
+               spin_unlock_irq(&tu->qlock);
+
                if (tu->tread) {
                        if (copy_to_user(buffer, &tu->tqueue[tu->qhead++], 
sizeof(snd_timer_tread_t))) {
                                err = -EFAULT;
@@ -1714,6 +1715,7 @@
                spin_lock_irq(&tu->qlock);
                tu->qused--;
        }
+       spin_unlock_irq(&tu->qlock);
        return result > 0 ? result : err;
 }
 



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to