]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: qla2xxx: Fix DMA mapping test in qla24xx_get_port_database()
authorThomas Fourier <fourier.thomas@gmail.com>
Tue, 17 Jun 2025 16:11:11 +0000 (18:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 14:03:06 +0000 (16:03 +0200)
commitc3ec87fbb00deb5ca1b7e2383441a81d65c4e1f7
treea52e790fcd298e1778f5857233fb9b0a3e172fa0
parent8ca65fa71024a1767a59ffbc6a6e2278af84735e
scsi: qla2xxx: Fix DMA mapping test in qla24xx_get_port_database()

[ Upstream commit c3b214719a87735d4f67333a8ef3c0e31a34837c ]

dma_map_XXX() functions return as error values DMA_MAPPING_ERROR which is
often ~0.  The error value should be tested with dma_mapping_error() like
it was done in qla26xx_dport_diagnostics().

Fixes: 818c7f87a177 ("scsi: qla2xxx: Add changes in preparation for vendor extended FDMI/RDP")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://lore.kernel.org/r/20250617161115.39888-2-fourier.thomas@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qla2xxx/qla_mbx.c