aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorRobin Murphy <[email protected]>2022-10-18 14:14:04 +0100
committerRafael J. Wysocki <[email protected]>2022-10-19 20:27:31 +0200
commit64d23ff38ac9ea822c9810b60a616e39e2c2c82d (patch)
tree2f61067bba9144a677849b335d2dedf7f1cfafb6 /tools/perf/util/scripting-engines/trace-event-python.c
parent9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff)
ACPI: scan: Fix DMA range assignment
Assigning the device's dma_range_map from the iterator variable after the loop means it always points to the empty terminator at the end of the map, which is not what we want. Similarly, freeing the iterator on error when it points to somwhere in the middle of the allocated array won't work either. Fix this. Fixes: bf2ee8d0c385 ("ACPI: scan: Support multiple DMA windows with different offsets") Signed-off-by: Robin Murphy <[email protected]> Reviewed-by: Jianmin Lv <[email protected]> Tested-by: Jeremy Linton <[email protected]> Tested-by: Yicong Yang <[email protected]> Reviewed-by: Lorenzo Pieralisi <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions