[openib-general] [PATCH] nit in dereg_mr
Michael S. Tsirkin
mst at mellanox.co.il
Thu Mar 17 09:57:02 PST 2005
Its cleaner to kfree mthca_mr, and not reply on the fact
that ib_mr is the first field in mthca_mr.
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
Index: hw/mthca/mthca_provider.c
===================================================================
--- hw/mthca/mthca_provider.c (revision 2012)
+++ hw/mthca/mthca_provider.c (working copy)
@@ -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;
}
--
MST - Michael S. Tsirkin
More information about the general
mailing list