Re: [PATCH] scsi: lpfc: prevent potential null pointer dereference

From: Martin K. Petersen
Date: Wed May 31 2017 - 22:46:12 EST



Gustavo A.,

> Null check at line 966: if (ndlp) {, implies that ndlp might be NULL.
> Functions lpfc_nlp_set_state() and lpfc_issue_els_prli() dereference
> pointer ndlp. Include these function calls inside the IF block that
> tests pointer ndlp.

Applied to 4.12/scsi-fixes. Thank you!

--
Martin K. Petersen Oracle Linux Engineering