scsi: lpfc: Correct LCB ACCept payload
authorJames Smart <jsmart2021@gmail.com>
Wed, 1 Aug 2018 00:23:23 +0000 (17:23 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 2 Aug 2018 19:45:19 +0000 (15:45 -0400)
commit24bc3119424ac163c2f67e072c956f50e153d034
treebaf8b7c6cd0be29871eae4176f166e855b2b7615
parent2a5b7d626ed2256fd0ef0e799ebc6ef47b7bd283
scsi: lpfc: Correct LCB ACCept payload

After memory allocation for the LCB response frame, the memory wasn't zero
initialized, and not all fields are set. Thus garbage shows up in the
payload.

Fix by zeroing the memory at allocation.  Also properly set the Capability
field based on duration support.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c