nvme: fixup memory leak in nvme_init_identify()
authorHannes Reinecke <[email protected]>
Fri, 25 May 2018 09:06:27 +0000 (11:06 +0200)
committerChristoph Hellwig <[email protected]>
Fri, 25 May 2018 14:50:12 +0000 (16:50 +0200)
commit75c8b19a23100455339af947e032f1a221344c68
treefdf6b0d0f57d6b163dd4fcb32f27b864bd877dcd
parent1e5f44616287b24a2c032274d6a5e3690dfd279b
nvme: fixup memory leak in nvme_init_identify()

If nvme_get_effects_log() failed the 'id' buffer from the previous
nvme_identify_ctrl() call will never be freed.

Signed-off-by: Hannes Reinecke <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
drivers/nvme/host/core.c