summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Knispel <gknispel@proformatique.com>2010-10-06 20:42:41 +0200
committerGuillaume Knispel <gknispel@proformatique.com>2010-10-06 20:42:41 +0200
commit1d97202fdf0aaf20807da6592055b71817a8cf11 (patch)
treefffbd764fcb4778525f759be6a88ae5b602a9327
parente80b2c259ae67c6a312515cfdd720bace54a3f37 (diff)
correct span unregistration loop in error code path
-rw-r--r--xhfc/xhfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xhfc/xhfc.c b/xhfc/xhfc.c
index eafa474..0e35f78 100644
--- a/xhfc/xhfc.c
+++ b/xhfc/xhfc.c
@@ -1101,7 +1101,7 @@ int __devinit xhfc_init_one(struct pci_dev *pdev,
return 0;
err_dahdi_register:
- for (; span >= 0; span--)
+ for (span--; span >= 0; span--)
dahdi_unregister(&pi->xhfc.spans[span].span);
err_request_irq:
err_collect_chip_id: