]> git.baikalelectronics.ru Git - 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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Mar 2022 03:37:22 +0000 (22:37 -0500)
commit1570941dac36df4e38ec88eaa332462d407cb8b1
tree1d90cdabe48faa943f6491713eb5714878fde227
parentea669f6267be2073dceda803d6cc05e81aa4d07e
scsi: mpt3sas: Fix incorrect 4GB boundary check

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: df6c1c037d9f ("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>
drivers/scsi/mpt3sas/mpt3sas_base.c