]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: mpt3sas: Fix incorrect 4GB boundary check
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Thu, 3 Mar 2022 14:02:30 +0000 (19:32 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:39:08 +0000 (14:39 +0200)
commit8919af23e6582051d4a523dcfd271295b2bb5dda
tree254130ba512d37a933771c7634b00379b45b090a
parentb2b963fe4f89be497abaa29f3d241c80ef063f48
scsi: mpt3sas: Fix incorrect 4GB boundary check

BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit 208cc9fe6f21112b5cc6cb87065fb8ab66e79316 ]

The driver must perform its 4GB boundary check using the pool's DMA address
instead of using the virtual address.

Link: https://lore.kernel.org/r/20220303140230.13098-1-sreekanth.reddy@broadcom.com
Fixes: d6adc251dd2f ("scsi: mpt3sas: Force PCIe scatterlist allocations to be within same 4 GB region")
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 88242bd033e2a92e6460e0bbf55bdd02b6f5d067)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/scsi/mpt3sas/mpt3sas_base.c