[PATCH] nvme: don't free uuid pointer before printing it

Christoph Hellwig hch at lst.de
Thu Jan 25 07:20:58 PST 2018


On Thu, Jan 25, 2018 at 09:09:25AM +0100, Johannes Thumshirn wrote:
> Commit df351ef73789 ("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.

Thanks,

applied to nvme-4.16.



More information about the Linux-nvme mailing list