[ofa-general] [PATCH] IB/mlx4: Set umem field to NULL in mlx4_ib_alloc_fast_reg_mr to avoid oops
Vladimir Sokolovsky
vlad at mellanox.co.il
Wed Nov 5 04:57:34 PST 2008
Set mr->umem to NULL in mlx4_ib_alloc_fast_reg_mr, to avoid invoking
ib_umem_release() during ib_dereg_mr() and getting a kernel oops.
Signed-off-by: Vladimir Sokolovsky <vlad at mellanox.co.il>
---
drivers/infiniband/hw/mlx4/mr.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/infiniband/hw/mlx4/mr.c b/drivers/infiniband/hw/mlx4/mr.c
index 87f5c5a..8e4d26d 100644
--- a/drivers/infiniband/hw/mlx4/mr.c
+++ b/drivers/infiniband/hw/mlx4/mr.c
@@ -205,6 +205,7 @@ struct ib_mr *mlx4_ib_alloc_fast_reg_mr(struct ib_pd *pd,
goto err_mr;
mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key;
+ mr->umem = NULL;
return &mr->ibmr;
--
1.5.6.3
More information about the general
mailing list