* Re: [PATCH v2] scsi: ufs: ufshpb: Fix possible memory leak
2021-08-23 9:07 ` [PATCH v2] scsi: ufs: ufshpb: Fix possible memory leak Keoseong Park
@ 2021-08-23 16:19 ` Bart Van Assche
2021-08-24 3:22 ` Martin K. Petersen
2021-08-28 2:32 ` Martin K. Petersen
2 siblings, 0 replies; 4+ messages in thread
From: Bart Van Assche @ 2021-08-23 16:19 UTC (permalink / raw)
To: keosung.park, ALIM AKHTAR, avri.altman@wdc.com,
jejb@linux.ibm.com, martin.petersen@oracle.com, Daejun Park,
beanhuo@micron.com, cang@codeaurora.org,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
On 8/23/21 2:07 AM, Keoseong Park wrote:
> When HPB pinned region exists and mctx allocation for this region fails,
> memory leak is possible because memory is not released for the subregion
> table of the current region.
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] scsi: ufs: ufshpb: Fix possible memory leak
2021-08-23 9:07 ` [PATCH v2] scsi: ufs: ufshpb: Fix possible memory leak Keoseong Park
2021-08-23 16:19 ` Bart Van Assche
@ 2021-08-24 3:22 ` Martin K. Petersen
2021-08-28 2:32 ` Martin K. Petersen
2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2021-08-24 3:22 UTC (permalink / raw)
To: Keoseong Park
Cc: ALIM AKHTAR, avri.altman@wdc.com, jejb@linux.ibm.com,
martin.petersen@oracle.com, Daejun Park, beanhuo@micron.com,
cang@codeaurora.org, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org
Keoseong,
> When HPB pinned region exists and mctx allocation for this region
> fails, memory leak is possible because memory is not released for the
> subregion table of the current region.
Applied to 5.15/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] scsi: ufs: ufshpb: Fix possible memory leak
2021-08-23 9:07 ` [PATCH v2] scsi: ufs: ufshpb: Fix possible memory leak Keoseong Park
2021-08-23 16:19 ` Bart Van Assche
2021-08-24 3:22 ` Martin K. Petersen
@ 2021-08-28 2:32 ` Martin K. Petersen
2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2021-08-28 2:32 UTC (permalink / raw)
To: beanhuo, linux-scsi, cang, linux-kernel, Daejun Park, avri.altman,
Keoseong Park, jejb, ALIM AKHTAR
Cc: Martin K . Petersen
On Mon, 23 Aug 2021 18:07:14 +0900, Keoseong Park wrote:
> When HPB pinned region exists and mctx allocation for this region fails,
> memory leak is possible because memory is not released for the subregion
> table of the current region.
>
> So, change to free memory for the subregion table of the current region.
>
>
> [...]
Applied to 5.15/scsi-queue, thanks!
[1/1] scsi: ufs: ufshpb: Fix possible memory leak
https://git.kernel.org/mkp/scsi/c/6c9783e6296e
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 4+ messages in thread