mirror_ubuntu-kernels/drivers/gpu/drm/amd
Furquan Shaikh ba1bab14b6 drivers: gpu: amd: Initialize amdgpu_dm_backlight_caps object to 0 in amdgpu_dm_update_backlight_caps
In `amdgpu_dm_update_backlight_caps()`, there is a local
`amdgpu_dm_backlight_caps` object that is filled in by
`amdgpu_acpi_get_backlight_caps()`. However, this object is
uninitialized before the call and hence the subsequent check for
aux_support can fail since it is not initialized by
`amdgpu_acpi_get_backlight_caps()` as well. This change initializes
this local `amdgpu_dm_backlight_caps` object to 0.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Furquan Shaikh <furquan@google.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-08-24 12:23:34 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amd/display: remove unintended executable mode 2020-08-24 12:23:02 -04:00
amdkfd drm/amdkfd: sparse: Fix warning in reading SDMA counters 2020-08-24 12:22:32 -04:00
display drivers: gpu: amd: Initialize amdgpu_dm_backlight_caps object to 0 in amdgpu_dm_update_backlight_caps 2020-08-24 12:23:34 -04:00
include drm/amd/display: remove unintended executable mode 2020-08-24 12:23:02 -04:00
pm drm/amd/pm: Remove unnecessary cast 2020-08-24 12:23:29 -04:00