projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b0f5df
)
IB/mlx4: Set umem field to NULL in mlx4_ib_alloc_fast_reg_mr()
author
Vladimir Sokolovsky
<vlad@mellanox.co.il>
Wed, 5 Nov 2008 18:56:52 +0000
(10:56 -0800)
committer
Roland Dreier
<rolandd@cisco.com>
Wed, 5 Nov 2008 18:56:52 +0000
(10:56 -0800)
Set mr->umem to NULL in mlx4_ib_alloc_fast_reg_mr(). Otherwise
ib_dereg_mr() may invoke ib_umem_release() on a random pointer value
and get an oops.
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/mr.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/hw/mlx4/mr.c
b/drivers/infiniband/hw/mlx4/mr.c
index 87f5c5a87b98fa499e55115db660c8e72dd56fd8..8e4d26d56a95f7e0571133915f35476e1860b541 100644
(file)
--- 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;