]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: check if ext_caps is valid in BL setup
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Mar 2026 16:33:48 +0000 (12:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Mar 2026 17:28:40 +0000 (13:28 -0400)
commit3f797396d7f4eb9bb6eded184bbc6f033628a6f6
tree3552f1e5012e60f5b02555b555e7377897df3023
parent8b9e5259adc385b61a6590a13b82ae0ac2bd3482
drm/amd/display: check if ext_caps is valid in BL setup

LVDS connectors don't have extended backlight caps so check
if the pointer is valid before accessing it.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/5012
Fixes: 1454642960b0 ("drm/amd: Re-introduce property to control adaptive backlight modulation")
Cc: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c