Commit 2fe4b6a
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>1 parent b85ea95 commit 2fe4b6a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5905 | 5905 | | |
5906 | 5906 | | |
5907 | 5907 | | |
5908 | | - | |
| 5908 | + | |
5909 | 5909 | | |
5910 | 5910 | | |
5911 | 5911 | | |
5912 | | - | |
| 5912 | + | |
5913 | 5913 | | |
5914 | 5914 | | |
5915 | 5915 | | |
| |||
0 commit comments