[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210322191817.GG1717@kadam>
Date: Mon, 22 Mar 2021 22:18:17 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Muhammad Usama Anjum <musamaanjum@...il.com>
Cc: Zhang Rui <rui.zhang@...el.com>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Amit Kucheria <amitk@...nel.org>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
colin.king@...onical.com
Subject: Re: [PATCH] thermal/core: avoid memory leak
On Tue, Mar 23, 2021 at 12:12:04AM +0500, Muhammad Usama Anjum wrote:
> When memory allocation for cdev is successful but ida_simple_get fails,
> branch to out_kfree_cdev label happens and cdev isn't freed. There are
> other some other branches in which the memory can leaked. Fix it by
> freeing cdev.
>
The patch is correct, but Daniel already sent a fix for it.
regards,
dan carpenter
Powered by blists - more mailing lists