tree 5f116d661f6dfa54f20c1d8ea1b9c88204d7bb2d
parent 4ad81174edfc22528b845a27620db7542c1ce9a6
author Roland Dreier <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:21 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:21 -0700
[PATCH] IB/mthca: only free doorbell records in mem-free mode
On error path, only free doorbell records if we're in mem-free mode.
Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
infiniband/hw/mthca/mthca_cq.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: drivers/infiniband/hw/mthca/mthca_cq.c
===================================================================
---
7e5caee73509af83e61524c5c418a5f25e705fb9/drivers/infiniband/hw/mthca/mthca_cq.c
(mode:100644 sha1:5dead2df7eb068eaa63dd3f67a91e9ce8e21ef00)
+++
5f116d661f6dfa54f20c1d8ea1b9c88204d7bb2d/drivers/infiniband/hw/mthca/mthca_cq.c
(mode:100644 sha1:8b3ffd23e50527303ac4cbdad3db2c50c9a89702)
@@ -817,10 +817,12 @@
err_out_mailbox:
kfree(mailbox);
- mthca_free_db(dev, MTHCA_DB_TYPE_CQ_ARM, cq->arm_db_index);
+ if (dev->hca_type == ARBEL_NATIVE)
+ mthca_free_db(dev, MTHCA_DB_TYPE_CQ_ARM, cq->arm_db_index);
err_out_ci:
- mthca_free_db(dev, MTHCA_DB_TYPE_CQ_SET_CI, cq->set_ci_db_index);
+ if (dev->hca_type == ARBEL_NATIVE)
+ mthca_free_db(dev, MTHCA_DB_TYPE_CQ_SET_CI,
cq->set_ci_db_index);
err_out_icm:
mthca_table_put(dev, dev->cq_table.table, cq->cqn);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html