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

From: James Smart
Date: Mon May 29 2017 - 19:06:39 EST


Looks good

Signed-off-by: James Smart <james.smart@xxxxxxxxxxxx>

-- james


On 5/23/2017 8:09 AM, Gustavo A. R. Silva wrote:
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.

Addresses-Coverity-ID: 1401856