[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <175747321924.2920136.5249615498551213507.b4-ty@oracle.com>
Date: Tue, 9 Sep 2025 23:04:11 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: mani@...nel.org, quic_cang@...cinc.com, quic_asutoshd@...cinc.com,
peter.wang@...iatek.com, alim.akhtar@...sung.com, avri.altman@....com,
bvanassche@....org, James.Bottomley@...senPartnership.com,
linux-scsi@...r.kernel.org, Alok Tiwari <alok.a.tiwari@...cle.com>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] scsi: ufs: mcq: Fix memory allocation checks for SQE and CQE
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
Powered by blists - more mailing lists