Skip to content
Commit dc7d4b1a authored by Shashank Sharma's avatar Shashank Sharma Committed by Greg Kroah-Hartman
Browse files

drm/amdgpu: fix return value check in kfd



[ Upstream commit 20534dbc ]

This patch fixes a return value check in kfd doorbell handling.
This function should return 0(error) only when the ida_simple_get
returns < 0(error), return > 0 is a success case.

Cc: Felix Kuehling <Felix.Kuehling@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Fixes: 16f00131 ("drm/amdkfd: Allocate doorbells only when needed")
Acked-by: default avatarChristian Koenig <chriatian.koenig@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarShashank Sharma <shashank.sharma@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0a632165
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment