diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2023-09-21 09:50:04 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-09-26 17:00:22 -0400 |
commit | 7441ef0b3ebe11ee46db82f7f7eee0f68b35e192 (patch) | |
tree | 947fe9e7524e82c053dce6757f3938b0e6680614 /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | |
parent | 41801c6b3042e2813365ee4def3f2804fd77776a (diff) |
drm/amd: Propagate failures in dc_set_power_state()
During the suspend process dc_set_power_state() will use kzalloc
to allocate memory, but this potentially fails with memory pressure.
If it fails, the suspend should be aborted.
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2362
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: Harry.Wentland@amd.com
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c')
0 files changed, 0 insertions, 0 deletions