diff options
author | Chao Leng <lengchao@huawei.com> | 2020-10-12 10:55:37 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-10-22 15:27:14 +0200 |
commit | a87da50f39d467f2ea4c1f98decb72ef6d87a31e (patch) | |
tree | c4f96aeae1c458f64d70777eff20836d79394052 /security/keys | |
parent | nvme-rdma: fix crash when connect rejected (diff) | |
download | linux-a87da50f39d467f2ea4c1f98decb72ef6d87a31e.tar.xz linux-a87da50f39d467f2ea4c1f98decb72ef6d87a31e.zip |
nvme-rdma: fix crash due to incorrect cqe
A crash happened due to injecting error test.
When a CQE has incorrect command id due do an error injection, the host
may find a request which is already freed. Dereferencing req->mr->rkey
causes 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: Chao Leng <lengchao@huawei.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'security/keys')
0 files changed, 0 insertions, 0 deletions