]> 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 13:57:44 +0000 (15:57 +0200)
commit9ceff7ded1e9114069f25b1a7fe60fe7e70cb051
tree544a96f50944c9a760a8937a59dc22cbab71e304
parent8846fd02c98da8b79e6343a20e6071be6f372180
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