mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
RDMA/core: Preserve the selected source GID on failed AH modification
When an address-handle modification fails, the core replaces its source-GID
reference. The old address then loses the reference which keeps its source
entry alive.
Fixes: 1a1f460ff1 ("RDMA: Hold the sgid_attr inside the struct ib_ah/qp")
Link: https://patch.msgid.link/20261015-ib-core-fixes-v1-1-60f6da3ddec3@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
This commit is contained in:
parent
2854f9025d
commit
d01ee4c841
|
|
@ -1011,7 +1011,8 @@ int rdma_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr)
|
|||
ah->device->ops.modify_ah(ah, ah_attr) :
|
||||
-EOPNOTSUPP;
|
||||
|
||||
ah->sgid_attr = rdma_update_sgid_attr(ah_attr, ah->sgid_attr);
|
||||
if (!ret)
|
||||
ah->sgid_attr = rdma_update_sgid_attr(ah_attr, ah->sgid_attr);
|
||||
rdma_unfill_sgid_attr(ah_attr, old_sgid_attr);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user