[PATCH 5.10 171/286] drm/amdgpu/debugfs: fix error code when smc register accessors are NULL