diff options
author | James Smart <[email protected]> | 2022-09-11 15:14:53 -0700 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-09-15 22:18:26 -0400 |
commit | 16ece56986638b8de22f47d009e9b0feec53c031 (patch) | |
tree | 4c97ee8bce02607c1e6bc993d11bdb0bacb32121 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 5ba207e55e7fdfa5f30737d2b234bf5b70fa3bfe (diff) |
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/[email protected]
Co-developed-by: Justin Tee <[email protected]>
Signed-off-by: Justin Tee <[email protected]>
Signed-off-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions