[openib-general] [PATCH] libmthca: fix user-level pd leak
Jack Morgenstein
jackm at mellanox.co.il
Wed Jan 11 07:49:38 PST 2006
Fixes user-level PD leak.
Signed-off-by: Jack Morgenstein <jackm at mellanox.co.il>
Index: gen2/src/userspace/libmthca/src/mthca.c
===================================================================
--- gen2.orig/src/userspace/libmthca/src/mthca.c 2005-11-24 10:43:02.536896000 +0200
+++ gen2/src/userspace/libmthca/src/mthca.c 2006-01-11 15:28:59.107661000 +0200
@@ -202,6 +202,7 @@ static void mthca_free_context(struct ib
{
struct mthca_context *context = to_mctx(ibctx);
+ mthca_free_pd(context->pd);
munmap(context->uar, to_mdev(ibctx->device)->page_size);
mthca_free_db_tab(context->db_tab);
free(context);
More information about the general
mailing list