diff options
| author | Xiaomeng Tong <[email protected]> | 2022-03-27 06:11:54 +0000 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2022-04-11 13:33:29 +0000 |
| commit | 206680c4e46b62fd8909385e0874a36952595b85 (patch) | |
| tree | ac0730d794636f639dbaf3efef1f392215fd72b9 /tools/perf/util/c++/clang.cpp | |
| parent | dmaengine: imx-sdma: fix init of uart scripts (diff) | |
| download | kernel-206680c4e46b62fd8909385e0874a36952595b85.tar.gz kernel-206680c4e46b62fd8909385e0874a36952595b85.zip | |
dma: at_xdmac: fix a missing check on list iterator
The bug is here:
__func__, desc, &desc->tx_dma_desc.phys, ret, cookie, residue);
The list iterator 'desc' will point to a bogus position containing
HEAD if the list is empty or no element is found. To avoid dev_dbg()
prints a invalid address, use a new variable 'iter' as the list
iterator, while use the origin variable 'desc' as a dedicated
pointer to point to the found element.
Cc: [email protected]
Fixes: 82e2424635f4c ("dmaengine: xdmac: fix print warning on dma_addr_t variable")
Signed-off-by: Xiaomeng Tong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions
