Commit 0572ecc
RDMA/hns: Fix accessing invalid dip_ctx during destroying QP
If it fails to modify QP to RTR, dip_ctx will not be attached. And
during detroying QP, the invalid dip_ctx pointer will be accessed.
Fixes: faa6244 ("RDMA/hns: Fix different dgids mapping to the same dip_idx")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20241220055249.146943-3-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>1 parent 8673a6c commit 0572ecc
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5619 | 5619 | | |
5620 | 5620 | | |
5621 | 5621 | | |
| 5622 | + | |
| 5623 | + | |
| 5624 | + | |
5622 | 5625 | | |
5623 | 5626 | | |
5624 | 5627 | | |
| |||
0 commit comments