Revision 5896585512e5156482335e902f7c7393b940da51 authored by Furquan Shaikh on 20 August 2020, 07:52:41 UTC, committed by Alex Deucher on 26 August 2020, 19:13:14 UTC
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>
1 parent 168f09c
History
File Mode Size
Kconfig -rw-r--r-- 1003 bytes
Makefile -rw-r--r-- 335 bytes
bio.c -rw-r--r-- 5.3 KB
crypto.c -rw-r--r-- 12.4 KB
fname.c -rw-r--r-- 18.8 KB
fscrypt_private.h -rw-r--r-- 17.4 KB
hkdf.c -rw-r--r-- 5.1 KB
hooks.c -rw-r--r-- 9.8 KB
inline_crypt.c -rw-r--r-- 11.1 KB
keyring.c -rw-r--r-- 33.1 KB
keysetup.c -rw-r--r-- 18.2 KB
keysetup_v1.c -rw-r--r-- 9.3 KB
policy.c -rw-r--r-- 23.4 KB

back to top