]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:11:48 +0000 (11:11 +0200)
commit8b2ab46b6c63c757a884fe0313531228bf1c38a0
tree3c57fba35f1a580fa93ed2eb52734269df9d4910
parent89df49e561b4a8948521fc3f8a013012eaa08f82
scsi: mpt3sas: Fix return value check of dma_get_required_mask()

[ Upstream commit e0e0747de0ea3dd87cdbb0393311e17471a9baf1 ]

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: ba27c5cf286d ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/mpt3sas/mpt3sas_base.c