Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Dereference the ATCS ACPI buffer

Need to dereference the atcs acpi buffer after
the method is executed, otherwise it will result in
a memory leak.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Prike Liang and committed by
Alex Deucher
32e7ee29 591aec15

+1
+1
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
··· 800 800 return -EIO; 801 801 } 802 802 803 + kfree(info); 803 804 return 0; 804 805 } 805 806