drm/amdgpu: check if hubbub is NULL in debugfs/amdgpu_dm_capabilities
authorPeter Shkenev <mustela@erminea.space>
Thu, 17 Jul 2025 20:48:17 +0000 (23:48 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Jul 2025 20:24:48 +0000 (16:24 -0400)
commitb4a69f7f29c8a459ad6b4d8a8b72450f1d9fd288
tree750e8613fb7c1e3f316b30f40d3b3998d6c41419
parentc90f2e1172c51fa25492471dc9910e2d7c1444b9
drm/amdgpu: check if hubbub is NULL in debugfs/amdgpu_dm_capabilities

HUBBUB structure is not initialized on DCE hardware, so check if it is NULL
to avoid null dereference while accessing amdgpu_dm_capabilities file in
debugfs.

Signed-off-by: Peter Shkenev <mustela@erminea.space>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c