aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorFurquan Shaikh <[email protected]>2020-08-20 07:52:41 +0000
committerAlex Deucher <[email protected]>2020-08-24 16:23:34 +0000
commitba1bab14b61752a9b37d749735f4ce8889e3397a (patch)
treee97414327121443309494c3faa46b755dd2111f6 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentdrm/amd/pm: Remove unnecessary cast (diff)
downloadkernel-ba1bab14b61752a9b37d749735f4ce8889e3397a.tar.gz
kernel-ba1bab14b61752a9b37d749735f4ce8889e3397a.zip
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions