diff options
author | Shaun Ruffell <sruffell@digium.com> | 2008-09-04 21:21:44 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2008-09-04 21:21:44 +0000 |
commit | 9145412dbb2245ea375a70af12c687f2d5c6cdf3 (patch) | |
tree | a2ec5e620ed092baede8f49cb2a488b5e8396ab9 /drivers/dahdi | |
parent | a7c0c8ac3aeac05bc68d117d9df9a3268205e2f9 (diff) |
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
Diffstat (limited to 'drivers/dahdi')
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 4 |
1 files changed, 2 insertions, 2 deletions
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;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 @@ 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; |