aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAndrew Martin <Andrew.Martin@amd.com>2024-12-10 11:50:13 -0500
committerAlex Deucher <alexander.deucher@amd.com>2024-12-18 12:18:11 -0500
commit88a45aa6083be000dc18c38a339acb1fd2f9831c (patch)
treed088a420154f0a35dbb2fd9a3c6380ee811d3cdf
parentdrm/amdgpu: Use dbg level for VBIOS check messages (diff)
downloadwireguard-linux-88a45aa6083be000dc18c38a339acb1fd2f9831c.tar.xz
wireguard-linux-88a45aa6083be000dc18c38a339acb1fd2f9831c.zip
drm/amdkfd: Failed to check various return code
This patch checks and warns if pdd is NULL. Signed-off-by: Andrew Martin <Andrew.Martin@amd.com> Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
index 16b5daaa272f..1405e8affd48 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
@@ -2388,6 +2388,9 @@ static int wait_on_destroy_queue(struct device_queue_manager *dqm,
q->process);
int ret = 0;
+ if (WARN_ON(!pdd))
+ return ret;
+
if (pdd->qpd.is_debug)
return ret;