Re: [PATCH] scsi: lpfc: Fix lpfc_nodelist leak when processing unsolicited event

2020-05-26 Thread Martin K. Petersen
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

Re: [PATCH] scsi: lpfc: Fix lpfc_nodelist leak when processing unsolicited event

2020-05-26 Thread James Smart
On 5/25/2020 8:12 AM, Daniel Wagner wrote: Hi, On Mon, May 25, 2020 at 10:16:24PM +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

Re: [PATCH] scsi: lpfc: Fix lpfc_nodelist leak when processing unsolicited event

2020-05-25 Thread Daniel Wagner
Hi, On Mon, May 25, 2020 at 10:16:24PM +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

[PATCH] scsi: lpfc: Fix lpfc_nodelist leak when processing unsolicited event

2020-05-25 Thread Xiyu Yang
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