diff options
| author | Zhou Qingyang <[email protected]> | 2022-01-24 16:55:51 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-01-25 23:00:36 +0000 |
| commit | 153a9529d7f372ce7ceb5eae7e2c312c0cd64d41 (patch) | |
| tree | c77f74b17be78a79fc33d6183e985b40f5488079 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | |
| parent | drm/amdgpu: convert amdgpu_display_supported_domains() to IP versions (diff) | |
| download | kernel-153a9529d7f372ce7ceb5eae7e2c312c0cd64d41.tar.gz kernel-153a9529d7f372ce7ceb5eae7e2c312c0cd64d41.zip | |
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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h')
0 files changed, 0 insertions, 0 deletions
