[svn-commits] sruffell: branch linux/2.4 r9659 - /linux/branches/2.4/drivers/dahdi/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jan 20 23:28:09 CST 2011


Author: sruffell
Date: Thu Jan 20 23:28:05 2011
New Revision: 9659

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

Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9317

Modified:
    linux/branches/2.4/drivers/dahdi/dahdi-base.c

Modified: linux/branches/2.4/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.4/drivers/dahdi/dahdi-base.c?view=diff&rev=9659&r1=9658&r2=9659
==============================================================================
--- linux/branches/2.4/drivers/dahdi/dahdi-base.c (original)
+++ linux/branches/2.4/drivers/dahdi/dahdi-base.c Thu Jan 20 23:28:05 2011
@@ -4221,6 +4221,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