]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix dmabuf ptr assignment in lpfc_ct_reject_event()
authorJames Smart <jsmart2021@gmail.com>
Fri, 6 May 2022 03:55:12 +0000 (20:55 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 May 2022 02:12:03 +0000 (22:12 -0400)
commit4e3b96e4aa245e4eb0d68cfc3e02d52ebd221bf3
tree29ea6c7afcfce2044ff1ce6e9f751dd7d97e08d5
parent95e6c0023d52c087139c8225c45b64a8f4d46144
scsi: lpfc: Fix dmabuf ptr assignment in lpfc_ct_reject_event()

Upon driver receipt of a CT cmd for type = 0xFA (Management Server) and
subtype = 0x11 (Fabric Device Management Interface), the driver is
responding with garbage CT cmd data when it should send a properly formed
RJT.

The __lpfc_prep_xmit_seq64_s4() routine was using the wrong buffer for the
reject.

Fix by converting the routine to use the buffer specified in the bde within
the wqe rather than the ill-set bmp element.

Link: https://lore.kernel.org/r/20220506035519.50908-6-jsmart2021@gmail.com
Fixes: 2d834a7cd0d0 ("scsi: lpfc: SLI path split: Refactor CT paths")
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>
drivers/scsi/lpfc/lpfc_sli.c