]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: bail out when failed to load fw in psp_init_cap_microcode()
authorJiang Liu <gerry@linux.alibaba.com>
Fri, 7 Feb 2025 06:28:51 +0000 (14:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 13:01:21 +0000 (14:01 +0100)
commitd1d10bd595539ed82ab59b60249f9bdf0994f678
treea4d034676a09e2f21e016a9c02d71de87f8e50ce
parentae5ab1c1ae504f622cc1ff48830a9ed48428146d
drm/amdgpu: bail out when failed to load fw in psp_init_cap_microcode()

[ Upstream commit a0a455b4bc7483ad60e8b8a50330c1e05bb7bfcf ]

In function psp_init_cap_microcode(), it should bail out when failed to
load firmware, otherwise it may cause invalid memory access.

Fixes: 07dbfc6b102e ("drm/amd: Use `amdgpu_ucode_*` helpers for PSP")
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Jiang Liu <gerry@linux.alibaba.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