scsi: lpfc: Fix DMA virtual address ptr assignment in bsg
authorJames Smart <jsmart2021@gmail.com>
Wed, 21 Apr 2021 23:44:48 +0000 (16:44 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 27 Apr 2021 02:57:27 +0000 (22:57 -0400)
commit83adbba746d1c8b6e3b07d73ae7815044804c96e
tree071a79dbbc583204440da435f894605c440832c9
parente1364711359f3ced054bda9920477c8bf93b74c5
scsi: lpfc: Fix DMA virtual address ptr assignment in bsg

lpfc_bsg_ct_unsol_event() routine acts assigns a ct_request to the wrong
structure address, resulting in a bad address that results in bsg related
timeouts.

Correct the ct_request assignment to use the kernel virtual buffer address
(not the control structure address).

Link: https://lore.kernel.org/r/20210421234448.102132-1-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>
drivers/scsi/lpfc/lpfc_bsg.c