diff options
author | Furquan Shaikh <[email protected]> | 2020-08-20 00:52:41 -0700 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2020-08-26 15:13:14 -0400 |
commit | 5896585512e5156482335e902f7c7393b940da51 (patch) | |
tree | 89aa66f9a38984de20382491f5f129355850de1e /scripts/gcc-plugins/gcc-common.h | |
parent | 168f09cdadbd547c2b202246ef9a8183da725f13 (diff) |
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 <[email protected]>
Signed-off-by: Furquan Shaikh <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions