Files
android_kernel_xiaomi_sm8450/drivers/infiniband/hw/mlx5
Ilya Lesokhin fbcd49838d 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: ff740aefec ("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>
2017-09-25 11:47:24 -04:00
..
2017-08-24 16:27:11 -04:00
2017-08-24 16:27:11 -04:00
2017-09-25 11:47:24 -04:00
2017-08-29 08:30:19 -04:00
2017-08-29 08:30:20 -04:00
2017-08-29 08:30:20 -04:00