drm/amdgpu: check if hubbub is NULL in debugfs/amdgpu_dm_capabilities

commit b4a69f7f29 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Peter Shkenev 2025-07-17 23:48:17 +03:00 • committed by Greg Kroah-Hartman
commit 83cfdc2b01