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
ext
Kconfig -rw-r--r-- 1.2 KB
Makefile -rw-r--r-- 641 bytes
array.c -rw-r--r-- 1.2 KB
hda_bus_type.c -rw-r--r-- 2.1 KB
hdac_bus.c -rw-r--r-- 6.9 KB
hdac_component.c -rw-r--r-- 9.6 KB
hdac_controller.c -rw-r--r-- 16.5 KB
hdac_device.c -rw-r--r-- 27.4 KB
hdac_i915.c -rw-r--r-- 3.8 KB
hdac_regmap.c -rw-r--r-- 15.2 KB
hdac_stream.c -rw-r--r-- 21.0 KB
hdac_sysfs.c -rw-r--r-- 11.2 KB
hdmi_chmap.c -rw-r--r-- 24.2 KB
intel-dsp-config.c -rw-r--r-- 9.4 KB
intel-nhlt.c -rw-r--r-- 1.7 KB
local.h -rw-r--r-- 1.4 KB
trace.c -rw-r--r-- 107 bytes
trace.h -rw-r--r-- 2.1 KB

back to top