]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: qla2xxx: Fix missed DMA unmap for NVMe ls requests
authorArun Easi <aeasi@marvell.com>
Thu, 10 Mar 2022 09:25:55 +0000 (01:25 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:58:41 +0000 (11:58 +0200)
commit62023cc895ecd8b889d7b63bd32679edf43c53b7
tree5e554f065a61c5d4ae8acfcc597177e79356c41e
parent65c149810ce23ccfa721b791d233f35a9f23f3c7
scsi: qla2xxx: Fix missed DMA unmap for NVMe ls requests

BugLink: https://bugs.launchpad.net/bugs/1969110
commit c85ab7d9e27a80e48d5b7d7fb2fe2b0fdb2de523 upstream.

At NVMe ELS request time, request structure is DMA mapped and never
unmapped. Fix this by calling the unmap on ELS completion.

Link: https://lore.kernel.org/r/20220310092604.22950-5-njavali@marvell.com
Fixes: e84067d74301 ("scsi: qla2xxx: Add FC-NVMe F/W initialization and transport registration")
Cc: stable@vger.kernel.org
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Arun Easi <aeasi@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit c9d6081a5f18286ad62afc1e9e06a90cfd626902)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/scsi/qla2xxx/qla_nvme.c