[PATCH 6.6 288/583] drm/amdgpu/debugfs: fix error code when smc register accessors are NULL