[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <163530706458.10775.11084247794290021262.b4-ty@oracle.com>
Date: Wed, 27 Oct 2021 00:00:22 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
avri.altman@....com, jejb@...ux.ibm.com, alim.akhtar@...sung.com
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
sthumma@...eaurora.org, linux-kernel@...r.kernel.org,
draviv@...eaurora.org, linux-scsi@...r.kernel.org,
bjorn.andersson@...aro.org
Subject: Re: [PATCH] scsi: ufs: ufshcd-pltfrm: fix memory leak due to probe defer
On Tue, 14 Sep 2021 10:22:14 +0100, Srinivas Kandagatla wrote:
> 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.
>
> Use same devm_* variant of kstrdup to free the memory allocated to
> name when driver probe defers.
>
> [...]
Applied to 5.16/scsi-queue, thanks!
[1/1] scsi: ufs: ufshcd-pltfrm: fix memory leak due to probe defer
https://git.kernel.org/mkp/scsi/c/b6ca770ae7f2
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists