From: Alex Deucher Date: Thu, 10 Apr 2025 17:17:08 +0000 (-0400) Subject: drm/amdgpu: don't swallow errors in amdgpu_userqueue_resume_all() X-Git-Tag: v6.16-rc1~144^2~10^2~210 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94fc88f680f94e1c41eb994e6c84873696ddcc6e;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: don't swallow errors in amdgpu_userqueue_resume_all() since we loop through the queues |= the errors. Reviewed-by: Sunil Khatri Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c index f5c2489baae43..aa7222137c31d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c @@ -423,7 +423,7 @@ amdgpu_userqueue_resume_all(struct amdgpu_userq_mgr *uq_mgr) /* Resume all the queues for this process */ idr_for_each_entry(&uq_mgr->userq_idr, queue, queue_id) { userq_funcs = adev->userq_funcs[queue->queue_type]; - ret = userq_funcs->map(uq_mgr, queue); + ret |= userq_funcs->map(uq_mgr, queue); } if (ret)