nvme-multipath: zero out ANA log buffer
authorHannes Reinecke <hare@suse.de>
Tue, 8 Jan 2019 11:46:58 +0000 (12:46 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Jan 2019 18:47:06 +0000 (13:47 -0500)
commitc7055fd15ff46d92eb0dd1c16a4fe010d58224c8
treeddc6cfcf2ec26aa31e225d678b558a6793610f41
parent9846ac0143fe9872e92fe2a1ddff868ad05bdbb6
nvme-multipath: zero out ANA log buffer

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>
drivers/nvme/host/multipath.c