diff options
author | Zhou Qingyang <zhou1615@umn.edu> | 2022-01-25 00:55:51 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-01-25 17:52:46 -0500 |
commit | ebc77bcc6e1660a011483c035d53c461c8dcc4f5 (patch) | |
tree | 5126f45aeb686ce23bfa3a425c0db2e0cf448341 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 98fdcacb45f7cd2092151d6af2e60152811eb79c (diff) |
drm/amd/display/dc/calcs/dce_calcs: Fix a memleak in calculate_bandwidth()
In calculate_bandwidth(), the tag free_sclk and free_yclk are reversed,
which could lead to a memory leak of yclk.
Fix this bug by changing the location of free_sclk and free_yclk.
This bug was found by a static analyzer.
Builds with 'make allyesconfig' show no new warnings,
and our static analyzer no longer warns about this code.
Fixes: 2be8989d0fc2 ("drm/amd/display/dc/calcs/dce_calcs: Move some large variables from the stack to the heap")
Signed-off-by: Zhou Qingyang <zhou1615@umn.edu>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions