OSDN Git Service

drm/amdgpu: return early if debugfs is not initialized
authorNirmoy Das <nirmoy.das@amd.com>
Wed, 6 Oct 2021 09:06:33 +0000 (11:06 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Oct 2021 19:53:14 +0000 (15:53 -0400)
commit5b9581df9f17b3e356d67735a07da97ba8e1fdd0
treeaa78c693055de0415e4a952aab10844ce7a67718
parent8e6519ce2c4ae94d88d51e7ea1a353ce2de8fcca
drm/amdgpu: return early if debugfs is not initialized

Check first if debugfs is initialized before creating
amdgpu debugfs files.

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: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c