diff options
author | Dan Carpenter <[email protected]> | 2023-05-15 13:32:10 +0300 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2023-05-19 16:54:04 +0530 |
commit | 4d43acb145c363626d76f49febb4240c488cd1cf (patch) | |
tree | 0aa8d482ceb227f8d174ab8ce49612ff65a3842c /tools/perf/scripts/python/intel-pt-events.py | |
parent | 38de368a66360f1859428d5e191b45bd01c20786 (diff) |
dmaengine: at_xdmac: fix potential Oops in at_xdmac_prep_interleaved()
There are two place if the at_xdmac_interleaved_queue_desc() fails which
could lead to a NULL dereference where "first" is NULL and we call
list_add_tail(&first->desc_node, ...). In the first caller, the return
is not checked so add a check for that. In the next caller, the return
is checked but if it fails on the first iteration through the loop then
it will lead to a NULL pointer dereference.
Fixes: 4e5385784e69 ("dmaengine: at_xdmac: handle numf > 1")
Fixes: 62b5cb757f1d ("dmaengine: at_xdmac: fix memory leak in interleaved mode")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Tudor Ambarus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions