aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/chip.h
diff options
context:
space:
mode:
authorIlya Lesokhin <ilyal@mellanox.com>2017-09-24 21:46:35 +0300
committerDoug Ledford <dledford@redhat.com>2017-09-25 11:47:24 -0400
commitfbcd49838d9094ca45772356e7b33afe4b7c93e7 (patch)
tree4e96b51fe57c888f867eb0285af6383a1ac9d180 /drivers/infiniband/hw/hfi1/chip.h
parentIB/mlx5: Simplify mlx5_ib_cont_pages (diff)
downloadlinux-dev-fbcd49838d9094ca45772356e7b33afe4b7c93e7.tar.xz
linux-dev-fbcd49838d9094ca45772356e7b33afe4b7c93e7.zip
IB/mlx5: Fix NULL deference on mlx5_ib_update_xlt failure
mlx5_ib_reg_user_mr called mlx5_ib_dereg_mr in case of MR population failure. This resulted in a NULL dereference as ibmr->device wasn't initialized yet. We address this by adding an internal dereg_mr function that can handle partially initialized MRs, and fixing clean_mr to work on partially initialized MRs. Fixes: ff740aefecb9 ("IB/mlx5: Decouple MR allocation and population flows") Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/chip.h')
0 files changed, 0 insertions, 0 deletions