-
由 Shusong Tao 提交于
mainline inclusion from mainline-v5.10-rc1 commit a87da50f category: bugfix bugzilla: NA CVE: NA Link: https://gitee.com/openeuler/kernel/issues/I1WGZE ------------------------------------------------- A crash happened due to injecting error test. The cqe has incorrect command id, host may find a request which already be freed. req->mr->rkey cause a crash in nvme_rdma_process_nvme_rsp. Because the mr is already freed. Add a check for the mr to fix it. Signed-off-by: NShusong Tao <taoshusong@huawei.com> Reviewed-by: NChao Leng <lengchao@huawei.com> Reviewed-by: NJike Cheng <chengjike.cheng@huawei.com> Signed-off-by: NLijie <lijie34@huawei.com> Acked-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
dffdd184