[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq1o8jswwci.fsf@ca-mkp.ca.oracle.com>
Date: Thu, 19 Nov 2020 22:17:27 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Colin King <colin.king@...onical.com>
Cc: James Smart <james.smart@...adcom.com>,
Dick Kennedy <dick.kennedy@...adcom.com>,
"James E . J . Bottomley" <jejb@...ux.ibm.com>,
"Martin K . Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] scsi: lpfc: Fix memory leak on lcb_context
Colin,
> Currently there is an error return path that neglects to free the
> allocation for lcb_context. Fix this by adding a new error free exit
> path that kfree's lcb_context before returning. Use this new kfree
> exit path in another exit error path that also kfree's the same
> object, allowing a line of code to be removed.
Applied to 5.11/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists