From: Muhammad Usama Anjum <musamaanjum@gmail.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Zhang Rui <rui.zhang@intel.com>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Amit Kucheria <amitk@kernel.org>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org, colin.king@canonical.com
Subject: Re: [PATCH] thermal/core: avoid memory leak
Date: Tue, 23 Mar 2021 00:19:50 +0500 [thread overview]
Message-ID: <959e827d3407bfee9a367d8a68aa9aed184ddcf5.camel@gmail.com> (raw)
In-Reply-To: <20210322191817.GG1717@kadam>
On Mon, 2021-03-22 at 22:18 +0300, Dan Carpenter wrote:
> 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.
>
Got it. Thank you.
Thanks,
Usama
> regards,
> dan carpenter
>
prev parent reply other threads:[~2021-03-22 19:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-22 19:12 [PATCH] thermal/core: avoid memory leak Muhammad Usama Anjum
2021-03-22 19:18 ` Dan Carpenter
2021-03-22 19:19 ` Muhammad Usama Anjum [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=959e827d3407bfee9a367d8a68aa9aed184ddcf5.camel@gmail.com \
--to=musamaanjum@gmail.com \
--cc=amitk@kernel.org \
--cc=colin.king@canonical.com \
--cc=dan.carpenter@oracle.com \
--cc=daniel.lezcano@linaro.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox