[svn-commits] sruffell: linux/trunk r4861 - /linux/trunk/drivers/dahdi/wct4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Sep 4 16:21:45 CDT 2008


Author: sruffell
Date: Thu Sep  4 16:21:44 2008
New Revision: 4861

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4861
Log:
Fixes an issue where the dual-span cards are not properly configured which can
cause data loss.

Fix provided by opticron and possibly related to issue #0013393.

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

Modified: linux/trunk/drivers/dahdi/wct4xxp/base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/wct4xxp/base.c?view=diff&rev=4861&r1=4860&r2=4861
==============================================================================
--- linux/trunk/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wct4xxp/base.c Thu Sep  4 16:21:44 2008
@@ -3442,7 +3442,7 @@
 	printk(KERN_INFO "TE%dXXP: Launching card: %d\n", wc->numspans, wc->order);
 
 	/* Setup serial parameters and system interface */
-	for (x=0;x<wc->numspans;x++)
+	for (x=0;x<4;x++)
 		t4_serial_setup(wc, x);
 
 	if (dahdi_register(&wc->tspans[0]->span, 0)) {
@@ -3604,7 +3604,7 @@
 #endif			
 
 	/* Allocate pieces we need here */
-	for (x = 0; x < wc->numspans; x++) {
+	for (x = 0; x < 4; x++) {
 		if (!(wc->tspans[x] = kmalloc(sizeof(*wc->tspans[x]), GFP_KERNEL))) {
 			free_wc(wc);
 			return -ENOMEM;




More information about the svn-commits mailing list