From 50aaf8d1257848014a6d381656127940a16b2853 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 4 Sep 2008 21:21:44 +0000 Subject: 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. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4861 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wct4xxp/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers') diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index 694050d..1d1cf8e 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -3442,7 +3442,7 @@ static int __devinit t4_launch(struct t4 *wc) printk(KERN_INFO "TE%dXXP: Launching card: %d\n", wc->numspans, wc->order); /* Setup serial parameters and system interface */ - for (x=0;xnumspans;x++) + for (x=0;x<4;x++) t4_serial_setup(wc, x); if (dahdi_register(&wc->tspans[0]->span, 0)) { @@ -3604,7 +3604,7 @@ static int __devinit t4_init_one(struct pci_dev *pdev, const struct pci_device_i #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; -- cgit v1.2.3