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-- 1.0 KB
Makefile -rw-r--r-- 385 bytes
cache.c -rw-r--r-- 3.0 KB
cnode.c -rw-r--r-- 4.8 KB
coda_cache.h -rw-r--r-- 712 bytes
coda_fs_i.h -rw-r--r-- 1.9 KB
coda_int.h -rw-r--r-- 611 bytes
coda_linux.c -rw-r--r-- 5.4 KB
coda_linux.h -rw-r--r-- 2.5 KB
coda_psdev.h -rw-r--r-- 3.3 KB
dir.c -rw-r--r-- 14.2 KB
file.c -rw-r--r-- 7.9 KB
inode.c -rw-r--r-- 7.2 KB
pioctl.c -rw-r--r-- 2.1 KB
psdev.c -rw-r--r-- 10.2 KB
symlink.c -rw-r--r-- 1.1 KB
sysctl.c -rw-r--r-- 1.2 KB
upcall.c -rw-r--r-- 24.3 KB

back to top