[dahdi-commits] sruffell: linux/trunk r4618 -	/linux/trunk/drivers/dahdi/wcfxo.c
    SVN commits to the DAHDI project 
    dahdi-commits at lists.digium.com
       
    Mon Jul 21 10:39:35 CDT 2008
    
    
  
Author: sruffell
Date: Mon Jul 21 10:39:35 2008
New Revision: 4618
URL: http://svn.digium.com/view/dahdi?view=rev&rev=4618
Log:
Fixed typo where chan is cleared out accidentally.
(Related to issue #0013112)
Modified:
    linux/trunk/drivers/dahdi/wcfxo.c
Modified: linux/trunk/drivers/dahdi/wcfxo.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/wcfxo.c?view=diff&rev=4618&r1=4617&r2=4618
==============================================================================
--- linux/trunk/drivers/dahdi/wcfxo.c (original)
+++ linux/trunk/drivers/dahdi/wcfxo.c Mon Jul 21 10:39:35 2008
@@ -903,8 +903,8 @@
 	}
 
 	ifaces[x] = wc;
+	memset(wc, 0, sizeof(struct wcfxo));
 	wc->chan = &wc->_chan;
-	memset(wc, 0, sizeof(struct wcfxo));
 	wc->ioaddr = pci_resource_start(pdev, 0);
 	wc->dev = pdev;
 	wc->pos = x;
    
    
More information about the dahdi-commits
mailing list