Skip to content
Commit 58965855 authored by Furquan Shaikh's avatar Furquan Shaikh Committed by Alex Deucher
Browse files

drivers: gpu: amd: Initialize amdgpu_dm_backlight_caps object to 0 in...


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: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarFurquan Shaikh <furquan@google.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 168f09cd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment