linux-stable/drivers/gpu
Zhou Qingyang ebc77bcc6e 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: 2be8989d0f ("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>
2022-01-25 17:52:46 -05:00
..
drm drm/amd/display/dc/calcs/dce_calcs: Fix a memleak in calculate_bandwidth() 2022-01-25 17:52:46 -05:00
host1x gpu: host1x: Add back arm_iommu_detach_device() 2021-12-16 14:28:51 +01:00
ipu-v3 media: i.MX6: Support 16-bit BT.1120 video input 2021-10-19 08:08:38 +01:00
trace
vga
Makefile