[svn-commits] sruffell: branch 1.4 r4554 - /branches/1.4/kernel/wctc4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 2 16:14:57 CDT 2008


Author: sruffell
Date: Thu Oct  2 16:14:56 2008
New Revision: 4554

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4554
Log:
Keep hold of the channel lock when setting the data_ready flag for the channel
after writing to the receive queue.  Prevents a warning that data was on the
recieve queue but the data ready flag was not set.  

Issue: DAHDI-42

Modified:
    branches/1.4/kernel/wctc4xxp/base.c

Modified: branches/1.4/kernel/wctc4xxp/base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/wctc4xxp/base.c?view=diff&rev=4554&r1=4553&r2=4554
==============================================================================
--- branches/1.4/kernel/wctc4xxp/base.c (original)
+++ branches/1.4/kernel/wctc4xxp/base.c Thu Oct  2 16:14:56 2008
@@ -1941,8 +1941,8 @@
 	cpvt = dtc->pvt;
 	spin_lock_bh(&cpvt->lock);
 	list_add_tail(&cmd->node, &cpvt->rx_queue);
+	zt_tc_set_data_waiting(dtc);
 	spin_unlock_bh(&cpvt->lock);
-	zt_tc_set_data_waiting(dtc);
 	zt_transcoder_alert(dtc);
 	return;
 }




More information about the svn-commits mailing list