]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitded61f3c1b88871cb2efa0691d325cd2a14c926e
treeaa78c693055de0415e4a952aab10844ce7a67718
parentc07751b11d8c1b8fbb5768d3d1f8ff2b410832eb
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