Skip to content

Commit 32e7ee2

Browse files
prliangpubalexdeucher
authored andcommitted
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>
1 parent 591aec1 commit 32e7ee2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,7 @@ int amdgpu_acpi_power_shift_control(struct amdgpu_device *adev,
800800
return -EIO;
801801
}
802802

803+
kfree(info);
803804
return 0;
804805
}
805806

0 commit comments

Comments
 (0)