aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-ti.c
diff options
context:
space:
mode:
authorChao Leng <lengchao@huawei.com>2020-10-12 16:55:37 +0800
committerChristoph Hellwig <hch@lst.de>2020-10-22 15:27:14 +0200
commita87da50f39d467f2ea4c1f98decb72ef6d87a31e (patch)
treec4f96aeae1c458f64d70777eff20836d79394052 /drivers/usb/cdns3/cdns3-ti.c
parent43efdb8e870ee0f58633fd579aa5b5185bf5d39e (diff)
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 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions