diff options
| author | Bob Pearson <[email protected]> | 2022-08-05 18:31:54 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2022-09-27 13:15:24 +0000 |
| commit | 58651bbb30f87dab474eff31ab564391aa6ea1f3 (patch) | |
| tree | 9d1ce1035b99118c499cbf88de77263f7b45dd69 /drivers/infiniband/hw/mlx5/devx.c | |
| parent | RDMA/rxe: Add send_common_ack() helper (diff) | |
| download | kernel-58651bbb30f87dab474eff31ab564391aa6ea1f3.tar.gz kernel-58651bbb30f87dab474eff31ab564391aa6ea1f3.zip | |
RDMA/rxe: Set pd early in mr alloc routines
Move setting of pd in mr objects ahead of any possible errors so that it
will always be set in rxe_mr_cleanup() to avoid seg faults when
rxe_put(mr_pd(mr)) is called.
Fixes: cf40367961d8 ("RDMA/rxe: Move mr cleanup code to rxe_mr_cleanup()")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bob Pearson <[email protected]>
Reviewed-by: Li Zhijian <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/devx.c')
0 files changed, 0 insertions, 0 deletions
