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-- 482 bytes
Makefile -rw-r--r-- 291 bytes
attr.c -rw-r--r-- 3.0 KB
bfind.c -rw-r--r-- 4.6 KB
bitmap.c -rw-r--r-- 5.8 KB
bnode.c -rw-r--r-- 11.2 KB
brec.c -rw-r--r-- 13.6 KB
btree.c -rw-r--r-- 8.9 KB
btree.h -rw-r--r-- 5.2 KB
catalog.c -rw-r--r-- 9.8 KB
dir.c -rw-r--r-- 7.9 KB
extent.c -rw-r--r-- 14.0 KB
hfs.h -rw-r--r-- 9.1 KB
hfs_fs.h -rw-r--r-- 9.1 KB
inode.c -rw-r--r-- 18.4 KB
mdb.c -rw-r--r-- 10.1 KB
part_tbl.c -rw-r--r-- 2.9 KB
string.c -rw-r--r-- 3.7 KB
super.c -rw-r--r-- 12.1 KB
sysdep.c -rw-r--r-- 1.0 KB
trans.c -rw-r--r-- 3.4 KB

back to top