drm/amdgpu: avoid dereferencing a NULL pointer
authorJack Xiao <Jack.Xiao@amd.com>
Wed, 5 Jun 2019 08:30:13 +0000 (16:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:35 +0000 (08:23 +0200)
commitdf1bd56e839e2461df3b0699a66d482e45ce2679
tree7d103e5824778e39497d936fb60389b48c7d1064
parent837d59cc0284e37cdcf042df99fb8beb51fae1ed
drm/amdgpu: avoid dereferencing a NULL pointer

[ Upstream commit 55611b507fd6453d26030c0c0619fdf0c262766d ]

Check if irq_src is NULL to avoid dereferencing a NULL pointer,
for MES ring is uneccessary to recieve an interrupt notification.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c