diff options
| author | Alok Tiwari <[email protected]> | 2025-09-07 19:40:16 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2025-09-10 02:38:38 +0000 |
| commit | 5cb782ff3c62c837e4984b6ae9f5d9a423cd5088 (patch) | |
| tree | 7f8601b6d9625c98bf28016ce593532c850eda2e /fs/btrfs/compression.c | |
| parent | scsi: sr: Reinstate rotational media flag (diff) | |
| download | kernel-5cb782ff3c62c837e4984b6ae9f5d9a423cd5088.tar.gz kernel-5cb782ff3c62c837e4984b6ae9f5d9a423cd5088.zip | |
scsi: ufs: mcq: Fix memory allocation checks for SQE and CQE
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.
Fixes: 4682abfae2eb ("scsi: ufs: core: mcq: Allocate memory for MCQ mode")
Signed-off-by: Alok Tiwari <[email protected]>
Reviewed-by: Alim Akhtar <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Reviewed-by: Peter Wang <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions
