diff options
author | Bob Pearson <[email protected]> | 2022-04-10 22:06:48 -0500 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2022-04-12 11:17:52 -0300 |
commit | 290c4a902b79246ec55e477fc313f27f98393dee (patch) | |
tree | 9ab7931cb503f21576a52ac18ebe83ea4fd0497f /lib/mpi/mpi-sub-ui.c | |
parent | ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e (diff) |
RDMA/rxe: Fix "Replace mr by rkey in responder resources"
The referenced commit generates a reference counting error if the rkey has
the same index but the wrong key. In this case the reference taken by
rxe_pool_get_index() is not dropped.
Drop the reference if the keys don't match in rxe_recheck_mr(). Check
that the mw and mr are still valid.
Fixes: 8a1a0be894da ("RDMA/rxe: Replace mr by rkey in responder resources")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bob Pearson <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions