Commit 83cfdc2b authored by Peter Shkenev's avatar Peter Shkenev Committed by Greg Kroah-Hartman
Browse files

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



commit b4a69f7f 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: default avatarPeter Shkenev <mustela@erminea.space>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 71598a5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment