commit | e6ef6a77f51e403a1400241b9d029ecaba45a834 | [log] [tgz] |
---|---|---|
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | Tue May 23 10:09:28 2017 -0500 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Wed May 31 22:45:15 2017 -0400 |
tree | 969e9aeda7900fd8b1060a91590e80d40e81f0e6 | |
parent | 7c9fdfb7000715df2d187df251d11e4850ce94c8 [diff] |
scsi: lpfc: prevent potential null pointer dereference 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 Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Acked-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>