aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Martin <[email protected]>2024-12-10 16:50:13 +0000
committerAlex Deucher <[email protected]>2024-12-18 17:18:11 +0000
commit88a45aa6083be000dc18c38a339acb1fd2f9831c (patch)
treed088a420154f0a35dbb2fd9a3c6380ee811d3cdf
parentdrm/amdgpu: Use dbg level for VBIOS check messages (diff)
downloadkernel-88a45aa6083be000dc18c38a339acb1fd2f9831c.tar.gz
kernel-88a45aa6083be000dc18c38a339acb1fd2f9831c.zip
drm/amdkfd: Failed to check various return code
This patch checks and warns if pdd is NULL. Signed-off-by: Andrew Martin <[email protected]> Reviewed-by: Harish Kasiviswanathan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-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;