[svn-commits] kmoore: linux/trunk r9317 - /linux/trunk/drivers/dahdi/dahdi-base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Sep 10 10:54:41 CDT 2010


Author: kmoore
Date: Fri Sep 10 10:54:36 2010
New Revision: 9317

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9317
Log:
dahdi-base: All channels for a span are now unconfigured on shutdown

Modified:
    linux/trunk/drivers/dahdi/dahdi-base.c

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=9317&r1=9316&r2=9317
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Fri Sep 10 10:54:36 2010
@@ -4223,6 +4223,11 @@
 		return 0;
 	case DAHDI_SHUTDOWN:
 		CHECK_VALID_SPAN(j);
+
+		/* Unconfigure channels */
+		for (x = 0; x < spans[j]->channels; x++)
+			spans[j]->chans[x]->sig = 0;
+
 		if (spans[j]->ops->shutdown)
 			res =  spans[j]->ops->shutdown(spans[j]);
 		spans[j]->flags &= ~DAHDI_FLAG_RUNNING;




More information about the svn-commits mailing list