scsi: fc: Correct RHBA attributes length
authorJaved Hasan <jhasan@marvell.com>
Thu, 3 Jun 2021 10:14:03 +0000 (03:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:52 +0000 (16:56 +0200)
commite2e615e6317bf610159bab4eb8fa9b4d9ec2c010
treead1ed94a71b1edd688cffda738e64598e23731eb
parent5c6956e66404a7cf2def6947adc937a471716f17
scsi: fc: Correct RHBA attributes length

commit 40445fd2c9fa427297acdfcc2c573ff10493f209 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/scsi/fc/fc_ms.h