]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpt3sas: Fix return value check of dma_get_required_mask()
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Tue, 13 Sep 2022 12:05:38 +0000 (17:35 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 16 Sep 2022 02:24:28 +0000 (22:24 -0400)
commitbb6562e76abc489b608eb368d814da7400e51119
treedc564da0032ca00ff8d3de336054d32768d881d0
parentce377ee34568f6a5e8cb058f287d21961ef9aa97
scsi: mpt3sas: Fix return value check of dma_get_required_mask()

Fix the incorrect return value check of dma_get_required_mask().  Due to
this incorrect check, the driver was always setting the DMA mask to 63 bit.

Link: https://lore.kernel.org/r/20220913120538.18759-2-sreekanth.reddy@broadcom.com
Fixes: 959fde1d0443 ("scsi: mpt3sas: Don't change the DMA coherent mask after allocations")
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