diff options
author | James Smart <jsmart2021@gmail.com> | 2021-03-01 09:18:01 -0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-03-04 17:37:03 -0500 |
commit | 58c36e80ee2d3836080b22ba965aa09454c070d6 (patch) | |
tree | dfa44adf1c65afa4cc3f1d02ba463b23b55347b3 /samples/trace_printk | |
parent | 9302154c07bff4e7f7f43c506a1ac84540303d06 (diff) |
scsi: lpfc: Fix vport indices in lpfc_find_vport_by_vpid()
Calls to lpfc_find_vport_by_vpid() for the highest indexed vport fails with
error, "2936 Could not find Vport mapped to vpi XXX". Our vport indices in
the loop and if-clauses were off by one.
Correct the vpid range used for vpi lookup to include the highest possible
vpid.
Link: https://lore.kernel.org/r/20210301171821.3427-3-jsmart2021@gmail.com
Co-developed-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'samples/trace_printk')
0 files changed, 0 insertions, 0 deletions