]> 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:53:46 +0000 (13:53 -0400)
commit9da4f9964abcaeb6e19797d5e3b10faad338a786
tree0b972987e0680b657019976e2021f1c53805ed75
parent7150850146ebfa4ca998f653f264b8df6f7f85be
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>
(cherry picked from commit 3f797396d7f4eb9bb6eded184bbc6f033628a6f6)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c