summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@nxp.com>2022-08-09 17:23:27 +0800
committerYi Zhao <yi.zhao@nxp.com>2022-08-10 10:15:18 +0200
commit4a817d4eb4582928b8bd6f9a3e2633beb8e3e2ba (patch)
tree7b447cdac3226f8ffdc6a837a349ad335dd48eba /drivers
parent9c86ff503c70ed1009f1c991d0aabc876eff685b (diff)
LF-2780: dma: fsl-qdma: fix coverity issue: Dereference after null check
Coverity Issue: 11394158 Dereference after null check Signed-off-by: Yi Zhao <yi.zhao@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/fsl-qdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/fsl-qdma.c b/drivers/dma/fsl-qdma.c
index 55356e0f834e..44f42d501a43 100644
--- a/drivers/dma/fsl-qdma.c
+++ b/drivers/dma/fsl-qdma.c
@@ -317,7 +317,7 @@ static void fsl_qdma_free_chan_resources(struct dma_chan *chan)
vchan_dma_desc_free_list(&fsl_chan->vchan, &head);
- if (!fsl_queue->comp_pool && !fsl_queue->desc_pool)
+ if (!fsl_queue->comp_pool || !fsl_queue->desc_pool)
return;
list_for_each_entry_safe(comp_temp, _comp_temp,