]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: myrs: Fix dma_alloc_coherent() error check
authorThomas Fourier <fourier.thomas@gmail.com>
Fri, 25 Jul 2025 08:31:06 +0000 (10:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 09:56:30 +0000 (11:56 +0200)
commite8a1d90b5d749197eb1597d6c70908f562dafeba
tree8c6b83da4e70bdaf31bef9ffca131d3b2a8e1aca
parent9c671d4dbfbfb0d73cfdfb706afb36d9ad60a582
scsi: myrs: Fix dma_alloc_coherent() error check

[ Upstream commit edb35b1ffc686fd9b5a91902f034eb9f4d2c9f6b ]

Check for NULL return value with dma_alloc_coherent(), because DMA
address is not always set by dma_alloc_coherent() on failure.

Fixes: 77266186397c ("scsi: myrs: Add Mylex RAID controller (SCSI interface)")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://lore.kernel.org/r/20250725083112.43975-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/myrs.c