diff options
author | 2022-09-11 15:14:53 -0700 | |
---|---|---|
committer | 2022-09-15 22:18:26 -0400 | |
commit | 16ece56986638b8de22f47d009e9b0feec53c031 (patch) | |
tree | 4c97ee8bce02607c1e6bc993d11bdb0bacb32121 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | scsi: mpi3mr: Fix error code in mpi3mr_transport_smp_handler() (diff) | |
download | linux-dev-16ece56986638b8de22f47d009e9b0feec53c031.tar.xz linux-dev-16ece56986638b8de22f47d009e9b0feec53c031.zip |
scsi: lpfc: Fix prli_fc4_req checks in PRLI handling
The if statment check (prli_fc4_req & PRLI_NVME_TYPE) evaluates to true
when receiving a PRLI request for bogus FC4 type codes that happen to have
the 3rd or 5th bit set because PRLI_NVME_TYPE is 0x28. This leads to
sending a PRLI_NVME_ACC even for bogus FC4 type codes.
Change the bitwise & check to an exact == type code check to ensure we send
PRLI_NVME_ACC only for NVME type coded PRLI requests.
Link: https://lore.kernel.org/r/20220911221505.117655-2-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions