nvme-multipath: zero out ANA log buffer
authorHannes Reinecke <hare@suse.de>
Tue, 8 Jan 2019 11:46:58 +0000 (12:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:25:41 +0000 (10:25 +0100)
commit6c27b5230e356ce2f4e259bef17a78864510d7ba
tree0038c89e31f4240d9a698211d31e4474d6244e74
parent095cfdf857a38972762d92379a848349fda00fe1
nvme-multipath: zero out ANA log buffer

[ Upstream commit c7055fd15ff46d92eb0dd1c16a4fe010d58224c8 ]

When nvme_init_identify() fails the ANA log buffer is deallocated
but _not_ set to NULL. This can cause double free oops when this
controller is deleted without ever being reconnected.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/multipath.c