]> git.itanic.dy.fi Git - linux-stable/commit
drm/amd/amdgpu: skip ucode loading if ucode_size == 0
authorChengming Gui <Jack.Gui@amd.com>
Tue, 30 Aug 2022 08:33:01 +0000 (16:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2022 10:43:48 +0000 (12:43 +0200)
commitc624b5659a28b8ccbb0a7f4061984bc276b4c542
tree8dc3c707c36682aa26480fa30dcfbdd561126726
parentf566cb9f4057d457afc2b1072005742095e0b0ec
drm/amd/amdgpu: skip ucode loading if ucode_size == 0

[ Upstream commit 39c84b8e929dbd4f63be7e04bf1a2bcd92b44177 ]

Restrict the ucode loading check to avoid frontdoor loading error.

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@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_psp.c