Re: [PATCH] scsi: lpfc: Fix lpfc_nodelist leak when processing unsolicited event
From: Martin K. Petersen
Date: Tue May 26 2020 - 22:15:40 EST
On Mon, 25 May 2020 22:16:24 +0800, Xiyu Yang wrote:
> In order to create or activate a new node, lpfc_els_unsol_buffer()
> invokes lpfc_nlp_init() or lpfc_enable_node() or lpfc_nlp_get(), all of
> them will return a reference of the specified lpfc_nodelist object to
> "ndlp" with increased refcnt.
>
> When lpfc_els_unsol_buffer() returns, local variable "ndlp" becomes
> invalid, so the refcount should be decreased to keep refcount balanced.
>
> [...]
Applied to 5.8/scsi-queue, thanks!
[1/1] scsi: lpfc: Fix lpfc_nodelist leak when processing unsolicited event
https://git.kernel.org/mkp/scsi/c/7217e6e694da
--
Martin K. Petersen Oracle Linux Engineering