diff options
| author | Basavaraj Natikar <[email protected]> | 2025-04-21 11:42:15 +0000 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2025-04-23 12:11:32 +0000 |
| commit | 305245a2e1d633e5f821178c98c6d6132cea2bdb (patch) | |
| tree | 0ddc3139a51c8cb4fab3215222b9e2ec82b1cbf5 /rust/helpers/helpers.c | |
| parent | dmaengine: idxd: Fix allowing write() from different address spaces (diff) | |
| download | kernel-305245a2e1d633e5f821178c98c6d6132cea2bdb.tar.gz kernel-305245a2e1d633e5f821178c98c6d6132cea2bdb.zip | |
dmaengine: ptdma: Move variable condition check to the first place and remove redundancy
The variable is dereferenced without first checking if it's null, leading
to the following warning: 'Variable dereferenced before check: desc.'
drivers/dma/amd/ptdma/ptdma-dmaengine.c: pt_cmd_callback_work()
warn: variable dereferenced before check 'desc'
Therefore, move the condition check for the 'desc' variable to the first
place and remove the redundant extra condition check.
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: 656543989457 ("dmaengine: ptdma: Utilize the AE4DMA engine's multi-queue functionality")
Signed-off-by: Basavaraj Natikar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
