[svn-commits] sruffell: linux/trunk r5025 - /linux/trunk/drivers/dahdi/wctc4xxp/base.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Oct 2 15:32:26 CDT 2008
Author: sruffell
Date: Thu Oct 2 15:32:26 2008
New Revision: 5025
URL: http://svn.digium.com/view/dahdi?view=rev&rev=5025
Log:
Mark that there is not any data waiting whenever we cleanup the private
channel structures.
Issue: DAHDI-42
Modified:
linux/trunk/drivers/dahdi/wctc4xxp/base.c
Modified: linux/trunk/drivers/dahdi/wctc4xxp/base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=5025&r1=5024&r2=5025
==============================================================================
--- linux/trunk/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctc4xxp/base.c Thu Oct 2 15:32:26 2008
@@ -1439,6 +1439,7 @@
spin_lock_bh(&cpvt->lock);
list_splice_init(&cpvt->rx_queue, &local_list);
+ dahdi_tc_clear_data_waiting(dtc);
spin_unlock_bh(&cpvt->lock);
list_for_each_entry_safe(cmd, temp, &local_list, node) {
@@ -1491,7 +1492,6 @@
DTE_DEBUG(DTE_DEBUG_CHANNEL_SETUP,
"Entering %s for channel %p.\n", __FUNCTION__, dtc);
/* Anything on the rx queue now is old news... */
- dahdi_tc_clear_data_waiting(dtc);
wctc4xxp_cleanup_channel_private(wc, cpvt);
DTE_DEBUG(DTE_DEBUG_CHANNEL_SETUP, "Allocating a new channel: %p.\n", dtc);
wctc4xxp_srcfmt = wctc4xxp_dahdifmt_to_dtefmt(dtc->srcfmt);
More information about the svn-commits
mailing list