[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180125152058.GB1778@lst.de>
Date: Thu, 25 Jan 2018 16:20:58 +0100
From: Christoph Hellwig <hch@....de>
To: Johannes Thumshirn <jthumshirn@...e.de>
Cc: Christoph Hellwig <hch@....de>, Sagi Grimberg <sagi@...mberg.me>,
Keith Busch <keith.busch@...el.com>,
Linux Kernel Mailinglist <linux-kernel@...r.kernel.org>,
Linux NVMe Mailinglist <linux-nvme@...ts.infradead.org>,
Dan Carpenter <dan.carpenter@...cle.com>,
Roland Dreier <roland@...estorage.com>
Subject: Re: [PATCH] nvme: don't free uuid pointer before printing it
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.
Powered by blists - more mailing lists