drm/amdgpu/userq: fix error handling of invalid doorbell
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Aug 2025 16:12:37 +0000 (12:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Aug 2025 18:01:52 +0000 (14:01 -0400)
commitc767d74a9cdd1042046d02319d16b85d9aa8a8aa
tree1939c216e0091cb6eb781a7bcc59d281b9793e5f
parentee38ea0ae4ed13fe33e033dc98d11e76bc7167cd
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
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c