summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2018-06-19 15:34:10 +0300
committerChristoph Hellwig <hch@lst.de>2018-06-20 14:20:28 +0200
commit94e42213cc1ae41c57819539c0130f8dfc69d718 (patch)
tree9e9f01f9576663e64878e24ee25373ee7f712dac /drivers/scsi
parent3d0641015bf73aaa1cb54c936674959e7805070f (diff)
downloadlinux-stable-94e42213cc1ae41c57819539c0130f8dfc69d718.tar.gz
linux-stable-94e42213cc1ae41c57819539c0130f8dfc69d718.tar.bz2
linux-stable-94e42213cc1ae41c57819539c0130f8dfc69d718.zip
nvme-rdma: fix possible free of a non-allocated async event buffer
If nvme_rdma_configure_admin_queue fails before we allocated the async event buffer, we will falsly free it because nvme_rdma_free_queue is freeing it. Fix it by allocating the buffer right after nvme_rdma_alloc_queue and free it right before nvme_rdma_queue_free to maintain orderly reverse cleanup sequence. Reported-by: Israel Rukshin <israelr@mellanox.com> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Max Gurtovoy <maxg@mellanox.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi')
0 files changed, 0 insertions, 0 deletions