Skip to content

Commit

Permalink
LF-2780: dma: fsl-qdma: fix coverity issue: Dereference after null check
Browse files Browse the repository at this point in the history
Coverity Issue: 11394158 Dereference after null check

Signed-off-by: Yi Zhao <[email protected]>
  • Loading branch information
Yi Zhao committed Aug 10, 2022
1 parent 9c86ff5 commit 4a817d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/fsl-qdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4a817d4

Please sign in to comment.