lkml.org 
[lkml]   [2020]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH][next] scsi: lpfc: Fix memory leak on lcb_context
Date
On Wed, 18 Nov 2020 14:13:14 +0000, Colin King wrote:

> 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-queue, thanks!

[1/1] scsi: lpfc: Fix memory leak on lcb_context
https://git.kernel.org/mkp/scsi/c/14c1dd950411

--
Martin K. Petersen Oracle Linux Engineering

\
 
 \ /
  Last update: 2020-11-24 05:03    [W:1.803 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site