diff options
author | Justin Tee <justin.tee@broadcom.com> | 2023-10-31 22:12:16 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-11-15 17:52:57 +0300 |
commit | 2fe4b6a67730e6ffd002b2b3c4752ef262fedde4 (patch) | |
tree | ee75161f1c71f2e5ba09bc63febd3c596d0aaaa3 /drivers/scsi/lpfc/lpfc.h | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) | |
download | linux-2fe4b6a67730e6ffd002b2b3c4752ef262fedde4.tar.xz |
scsi: lpfc: Correct maximum PCI function value for RAS fw logging
Currently, the ras_fwlog_func sysfs parameter allows users to input a value
greater than three when selecting a PCI function to enable RAS fw logging
feature.
The user's input is sanity checked in lpfc_sli4_ras_init(), but allowing an
input greater than three doesn't make sense because the max number of ports
per HBA is four.
Change the allowable range from [0, 7] to [0, 3].
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20231031191224.150862-2-justintee8345@gmail.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc.h')
0 files changed, 0 insertions, 0 deletions