From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com,
martin.petersen@oracle.com, draviv@codeaurora.org,
sthumma@codeaurora.org, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org
Subject: Re: [PATCH] scsi: ufs: ufshcd-pltfrm: fix memory leak due to probe defer
Date: Wed, 20 Oct 2021 23:14:00 -0400 [thread overview]
Message-ID: <yq1v91r6pei.fsf@ca-mkp.ca.oracle.com> (raw)
In-Reply-To: <48895dce-8c26-0763-419d-9b53d7f7281b@linaro.org> (Srinivas Kandagatla's message of "Wed, 20 Oct 2021 16:47:47 +0100")
Srinivas,
>> UFS drivers that probe defer will endup leaking memory allocated for
>> clk and regulator names via kstrdup because the structure that is
>> holding this memory is allocated via devm_* variants which will be
>> freed during probe defer but the names are never freed.
Applied to 5.16/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
next prev parent reply other threads:[~2021-10-21 3:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-14 9:22 [PATCH] scsi: ufs: ufshcd-pltfrm: fix memory leak due to probe defer Srinivas Kandagatla
2021-10-20 15:47 ` Srinivas Kandagatla
2021-10-21 3:14 ` Martin K. Petersen [this message]
2021-10-20 16:20 ` Bart Van Assche
2021-10-27 4:00 ` Martin K. Petersen
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=yq1v91r6pei.fsf@ca-mkp.ca.oracle.com \
--to=martin.petersen@oracle.com \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@wdc.com \
--cc=bjorn.andersson@linaro.org \
--cc=draviv@codeaurora.org \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=sthumma@codeaurora.org \
/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