diff options
author | Guillaume Knispel <gknispel@proformatique.com> | 2010-10-06 20:42:41 +0200 |
---|---|---|
committer | Guillaume Knispel <gknispel@proformatique.com> | 2010-10-06 20:42:41 +0200 |
commit | 1d97202fdf0aaf20807da6592055b71817a8cf11 (patch) | |
tree | fffbd764fcb4778525f759be6a88ae5b602a9327 | |
parent | e80b2c259ae67c6a312515cfdd720bace54a3f37 (diff) |
correct span unregistration loop in error code path
-rw-r--r-- | xhfc/xhfc.c | 2 |
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: |