Thread (25 messages) 25 messages, 4 authors, 2018-06-24
STALE2939d

[PATCH 2/7] nvme-rdma: fix possible free non-allocated async event buffer

From: hch@lst.de (Christoph Hellwig)
Date: 2018-06-20 08:31:59

On Tue, Jun 19, 2018@03:34:10PM +0300, Sagi Grimberg wrote:
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.
This looks much nicer indeed.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help