Loading
RDMA/hns: Fix accessing invalid dip_ctx during destroying QP
maillist inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBDW6Z CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=0572eccf239ce4bd89bd531767ec5ab20e249290 ---------------------------------------------------------------------- If it fails to modify QP to RTR, dip_ctx will not be attached. And iuring detroying QP, the invalid dip_ctx pointer will be accessed. Fixes: faa62440a577 ("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> Signed-off-by:
Xinghai Cen <cenxinghai@h-partners.com>