tree d7857bd1bcfd5607998b830130f1ef23f7322809
parent 72c30290bea3a24e2ab56c7a51af47012f7465a4
author Roland Dreier <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:17 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:17 -0700
[PATCH] IB/mthca: clean up mthca_dereg_mr()
It's cleaner to kfree mthca_mr, and not rely on the fact that ib_mr is the
first field in mthca_mr.
Signed-off-by: Michael S. Tsirkin <[EMAIL PROTECTED]>
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_provider.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: drivers/infiniband/hw/mthca/mthca_provider.c
===================================================================
---
251b5d362db0e598aef0f47193922a39af1e1773/drivers/infiniband/hw/mthca/mthca_provider.c
(mode:100644 sha1:293c69b1e48f6b657297f220c9869c279ca4e886)
+++
d7857bd1bcfd5607998b830130f1ef23f7322809/drivers/infiniband/hw/mthca/mthca_provider.c
(mode:100644 sha1:55a338da9970c3b597be5dda67b15eb5a4d70d24)
@@ -568,8 +568,9 @@
static int mthca_dereg_mr(struct ib_mr *mr)
{
- mthca_free_mr(to_mdev(mr->device), to_mmr(mr));
- kfree(mr);
+ struct mthca_mr *mmr = to_mmr(mr);
+ mthca_free_mr(to_mdev(mr->device), mmr);
+ kfree(mmr);
return 0;
}
-
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