linux/drivers/nvme/host
Johannes Thumshirn 6e49412016 nvme: don't free uuid pointer before printing it
Commit df351ef737 ("nvme-fabrics: fix memory leak when parsing host ID
option") fixed the leak of 'p' but in case uuid_parse() fails the memory
is freed before the error print that is using it.

Free it after printing eventual errors.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Fixes: df351ef737 ("nvme-fabrics: fix memory leak when parsing host ID option")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2018-01-25 18:41:39 +01:00
..
core.c nvme: host delete_work and reset_work on separate workqueues 2018-01-15 17:09:30 +01:00
fabrics.c nvme: don't free uuid pointer before printing it 2018-01-25 18:41:39 +01:00
fabrics.h nvme-fabrics: protect against module unload during create_ctrl 2018-01-08 11:01:56 +01:00
fc.c nvme-fc: correct hang in nvme_ns_remove() 2018-01-17 17:55:02 +01:00
Kconfig nvme: implement multipath access to nvme subsystems 2017-11-10 19:53:25 -07:00
lightnvm.c lightnvm: make geometry structures 2.0 ready 2018-01-05 08:50:12 -07:00
Makefile Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-block 2017-11-14 15:32:19 -08:00
multipath.c nvme/multipath: Use blk_path_error 2018-01-10 10:52:18 -07:00
nvme.h nvme: host delete_work and reset_work on separate workqueues 2018-01-15 17:09:30 +01:00
pci.c nvme-pci: Suspend queues after deleting them 2018-01-25 16:20:37 +01:00
rdma.c nvme: host delete_work and reset_work on separate workqueues 2018-01-15 17:09:30 +01:00