]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2023 20:27:42 +0000 (15:27 -0500)
commitafe58346d5d3887b3e49ff623d2f2e471f232a8d
treed17abe02aa4fd5edbec551cff3d4fda960ae7dba
parent6872a189be508b9383bc081d462a5d99cbb8319d
drm/amdgpu/debugfs: fix error code when smc register accessors are NULL

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c