drm/amdgpu: fix the waring dereferencing hive

[ Upstream commit 1940708ccf ]

Check the amdgpu_hive_info *hive that maybe is NULL.

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Jesse Zhang 2024-05-08 16:20:49 +08:00 • committed by Greg Kroah-Hartman
commit 01cd55b971