]> 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)
commitb04ce53eac2fc326290817a6f64a440b5bffd2e3
tree861120caae4692bda461b13dde9a55d9bc6d37d4
parent7bbee36d71502ab9a341505da89a017c7ae2e6b2
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