diff options
author | 2025-08-22 12:12:37 -0400 | |
---|---|---|
committer | 2025-08-27 14:01:52 -0400 | |
commit | c767d74a9cdd1042046d02319d16b85d9aa8a8aa (patch) | |
tree | 1939c216e0091cb6eb781a7bcc59d281b9793e5f | |
parent | drm/amdgpu: update firmware version checks for user queue support (diff) | |
download | wireguard-linux-c767d74a9cdd1042046d02319d16b85d9aa8a8aa.tar.xz wireguard-linux-c767d74a9cdd1042046d02319d16b85d9aa8a8aa.zip |
drm/amdgpu/userq: fix error handling of invalid doorbell
If the doorbell is invalid, be sure to set the r to an error
state so the function returns an error.
Reviewed-by: David (Ming Qiang) Wu <David.Wu3@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 7e2a5b0a9a165a7c51274aa01b18be29491b4345)
Cc: stable@vger.kernel.org
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c index c3ace8030530..8190c24a649a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c @@ -471,6 +471,7 @@ amdgpu_userq_create(struct drm_file *filp, union drm_amdgpu_userq *args) if (index == (uint64_t)-EINVAL) { drm_file_err(uq_mgr->file, "Failed to get doorbell for queue\n"); kfree(queue); + r = -EINVAL; goto unlock; } |