In the Linux kernel, the following vulnerability has been resolved:
scsi: lpfc: Fix null pointer dereference in lpfcprepels_iocb()
It is possible to call lpfcissueelsplogi() passing a did for which no matching ndlp is found. A call is then made to lpfcprepelsiocb() with a null pointer to a lpfc_nodelist structure resulting in a null pointer dereference.
Fix by returning an error status if no valid ndlp is found. Fix up comments regarding ndlp reference counting.