Skip to content

Commit 32e7ee2

Browse files
Prike Liangalexdeucher
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 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 591aec1 commit 32e7ee2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)