diff options
author | Shashank Sharma <shashank.sharma@amd.com> | 2023-02-27 17:42:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-17 10:58:00 +0300 |
commit | da913a48034bab419d814b6de57500baa879fee2 (patch) | |
tree | 98e3fc4fb773a348dbba7e4cf1aabcbfd2e5ebf9 /include/clocksource | |
parent | d4ecfe12609babc3ebd4af21959af2aa45b7d4d9 (diff) | |
download | linux-da913a48034bab419d814b6de57500baa879fee2.tar.xz |
drm/amdgpu: fix return value check in kfd
[ Upstream commit 20534dbcc7b7bfb447279cdcfb0d88ee3b779a18 ]
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: 16f0013157bf ("drm/amdkfd: Allocate doorbells only when needed")
Acked-by: Christian Koenig <chriatian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/clocksource')
0 files changed, 0 insertions, 0 deletions