drm/amdgpu/debugfs: fix error code when smc register accessors are NULL
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Nov 2023 22:26:29 +0000 (17:26 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:36 +0000 (15:35 -0800)
commit5bc4f16118c575410e7be220bbb9b1fa2ee4274b
tree4977c0cbc3010681ff73e124c15f770677d92230
parent37e452306ae2f14ffefce5332f82a740f45ff1ad
drm/amdgpu/debugfs: fix error code when smc register accessors are NULL

[ Upstream commit afe58346d5d3887b3e49ff623d2f2e471f232a8d ]

Should be -EOPNOTSUPP.

Fixes: 5104fdf50d32 ("drm/amdgpu: Fix a null pointer access when the smc_rreg pointer is NULL")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c