]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix error checking in amdgpu_read_mm_registers for nv
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Mar 2023 13:59:13 +0000 (08:59 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:15 +0000 (08:50 +0100)
commita8208d20a82e19cabf00e1a9dd33409dad0aa7c1
treec452377715aaa73e52d7cd8df2863b140cd27e1e
parent5f3bbfe8d4da2f376cc6b4cda119baaf11612f39
drm/amdgpu: fix error checking in amdgpu_read_mm_registers for nv

commit 8b2e097cf187d4b7bcceb4af5e59f08e8b033168 upstream.

Properly skip non-existent registers as well.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2442
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/nv.c