scsi: fc: Correct RHBA attributes length
authorJaved Hasan <jhasan@marvell.com>
Thu, 3 Jun 2021 10:14:03 +0000 (03:14 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Jun 2021 03:55:37 +0000 (23:55 -0400)
commit40445fd2c9fa427297acdfcc2c573ff10493f209
tree1cd6d754cf54aa069afe17a3eea36b15950c5a39
parente8a4d0daaef6fc8f965ca0b8e9585aa9698a0f24
scsi: fc: Correct RHBA attributes length

As per the FC-GS-5 specification, attribute lengths of node_name and
manufacturer should in range of "4 to 64 Bytes" only.

Link: https://lore.kernel.org/r/20210603101404.7841-2-jhasan@marvell.com
Fixes: e721eb0616f6 ("scsi: scsi_transport_fc: Match HBA Attribute Length with HBAAPI V2.0 definitions")
CC: stable@vger.kernel.org
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Javed Hasan <jhasan@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
include/scsi/fc/fc_ms.h