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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 08:24:40 +0000 (09:24 +0100)
commit992a773cb9bbd17e79647a3bfced86f2a4c8d5ad
treee1752c96c4f48d7cb5a1a83611d1b32e3ff6b4c3
parent5893e48f8f8a857b5bcd623d67d91668330a514a
nvme-rdma: fix double freeing of async event data

[ Upstream commit 6344d02dc8f886b6bbcd922ae1a17e4a41500f2d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/rdma.c