Re: [PATCH v2] scsi: ufs: mcq: Fix memory allocation checks for SQE and CQE
From: Martin K. Petersen
Date: Tue Sep 09 2025 - 23:04:30 EST
On Sun, 07 Sep 2025 12:40:16 -0700, Alok Tiwari wrote:
> Previous checks incorrectly tested the DMA addresses (dma_handle)
> for NULL. Since dma_alloc_coherent() returns the CPU (virtual)
> address, the NULL check should be performed on the *_base_addr
> pointer to correctly detect allocation failures.
>
> Update the checks to validate sqe_base_addr and cqe_base_addr
> instead of sqe_dma_addr and cqe_dma_addr.
>
> [...]
Applied to 6.17/scsi-fixes, thanks!
[1/1] scsi: ufs: mcq: Fix memory allocation checks for SQE and CQE
https://git.kernel.org/mkp/scsi/c/5cb782ff3c62
--
Martin K. Petersen