diff options
author | 2020-10-12 16:55:37 +0800 | |
---|---|---|
committer | 2020-10-22 15:27:14 +0200 | |
commit | a87da50f39d467f2ea4c1f98decb72ef6d87a31e (patch) | |
tree | c4f96aeae1c458f64d70777eff20836d79394052 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | nvme-rdma: fix crash when connect rejected (diff) | |
download | wireguard-linux-a87da50f39d467f2ea4c1f98decb72ef6d87a31e.tar.xz wireguard-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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions