]> Gentwo Git Trees - linux/.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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 20 Aug 2025 02:30:57 +0000 (22:30 -0400)
commitedb35b1ffc686fd9b5a91902f034eb9f4d2c9f6b
tree5b577f41c0b27015efebebda2238f5886f6b8bf5
parente79aa10e288c617c12ac4eb3fe7962f5c644b8fe
scsi: myrs: Fix dma_alloc_coherent() error check

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>
drivers/scsi/myrs.c