drm/amdgpu: check hive pointer before access
authorHawking Zhang <Hawking.Zhang@amd.com>
Sat, 5 Sep 2020 15:11:17 +0000 (23:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Nov 2020 05:14:43 +0000 (00:14 -0500)
commita9f5f98f796ee93a865b9886bf7cb694cf124eb5
tree4c99a0b6b6ce89fd33c64de456cd6fc84814154a
parent3f66bf401e9fde1c35bb8b02dd7975659c40411d
drm/amdgpu: check hive pointer before access

in case it is an invalid one

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c