]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: use IS_ERR for debugfs APIs
authorNirmoy Das <nirmoy.das@amd.com>
Thu, 2 Sep 2021 11:27:56 +0000 (13:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Sep 2021 20:21:15 +0000 (16:21 -0400)
commit74aab49d2a0eee493ce9dd2c54078019a72a61f7
tree861120caae4692bda461b13dde9a55d9bc6d37d4
parent2dd447574d08782c5527cf33c1d8cde1a60a69ab
drm/amdgpu: use IS_ERR for debugfs APIs

debugfs APIs returns encoded error so use
IS_ERR for checking return value.

v2: return PTR_ERR(ent)

References: https://gitlab.freedesktop.org/drm/amd/-/issues/1686
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-By: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c