drm/amdgpu: fix return value check in kfd
authorShashank Sharma <shashank.sharma@amd.com>
Mon, 27 Feb 2023 14:42:28 +0000 (15:42 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Mar 2023 19:22:14 +0000 (14:22 -0500)
commitc07edf915ece65ce11a765bf4f9f0a1000bb7a33
treee0ea5093272735ebbd1364e2c3b4c185417d8e50
parentb059cba51979b3431b75e0c6f18e9f75e427537c
drm/amdgpu: fix return value check in kfd

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>
drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c