Commit b02372e8 authored by Chengming Gui's avatar Chengming Gui Committed by Jialin Zhang
Browse files

drm/amd/amdgpu: skip ucode loading if ucode_size == 0

stable inclusion
from stable-v5.10.144
commit 187908079d94673b01fbd63d7251bfab4341e7cb
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0V7

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=187908079d94673b01fbd63d7251bfab4341e7cb



--------------------------------

[ Upstream commit 39c84b8e ]

Restrict the ucode loading check to avoid frontdoor loading error.

Signed-off-by: default avatarChengming Gui <Jack.Gui@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 589166b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment