scsi: lpfc: Validate ELS LS_ACC completion payload
authorJustin Tee <justin.tee@broadcom.com>
Mon, 9 Oct 2023 16:18:10 +0000 (09:18 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 13 Oct 2023 20:58:27 +0000 (16:58 -0400)
commita3c3c0a806f1bb7d89f139d8225092faad0cf04a
tree8402aaf87401934814719f9c147e450caa6394b3
parent12e896c74280d9d8da87327f08cf0e878d24ae5c
scsi: lpfc: Validate ELS LS_ACC completion payload

A WCQE success completion status does not guarantee valid LS_ACC receipt
for ELS commands.  So, introduce a small helper routine that validates ELS
LS_ACC frames in ELS cmpl routines.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20231009161812.97232-5-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c