]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme-rdma: fix double freeing of async event data
authorPrabhath Sajeepa <psajeepa@purestorage.com>
Wed, 28 Nov 2018 18:11:29 +0000 (11:11 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 30 Nov 2018 16:23:23 +0000 (17:23 +0100)
commit6344d02dc8f886b6bbcd922ae1a17e4a41500f2d
tree4218580933ba66ea2ec7ebe0da102e1b96ee7b66
parentf6c8e432cb0479255322c5d0335b9f1699a0270c
nvme-rdma: fix double freeing of async event data

Some error paths in configuration of admin queue free data buffer
associated with async request SQE without resetting the data buffer
pointer to NULL, This buffer is also freed up again if the controller
is shutdown or reset.

Signed-off-by: Prabhath Sajeepa <psajeepa@purestorage.com>
Reviewed-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c