[Asterisk-cvs] zaptel zaptel.c,1.98,1.99
markster at lists.digium.com
markster at lists.digium.com
Wed Jan 12 09:55:57 CST 2005
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv13283
Modified Files:
zaptel.c
Log Message:
Commit belated fix for 3312
Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- zaptel.c 4 Nov 2004 20:04:53 -0000 1.98
+++ zaptel.c 12 Jan 2005 15:59:59 -0000 1.99
@@ -4089,19 +4089,21 @@
rv = 0;
break;
case ZT_HOOK:
+ get_user(j,(int *)data);
if (chan->flags & ZT_FLAG_CLEAR)
return -EINVAL;
if (chan->sig == ZT_SIG_CAS)
return -EINVAL;
/* if no span, just do nothing */
if (!chan->span) return(0);
+ spin_lock_irqsave(&chan->lock, flags);
/* if dialing, stop it */
chan->curtone = NULL;
chan->dialing = 0;
chan->txdialbuf[0] = '\0';
chan->tonep = 0;
chan->pdialcount = 0;
- get_user(j,(int *)data);
+ spin_unlock_irqrestore(&chan->lock, flags);
if (chan->span->flags & ZT_FLAG_RBS) {
switch (j) {
case ZT_ONHOOK:
More information about the svn-commits
mailing list