Skip to content
Snippets Groups Projects
Commit 6f1fabc9 authored by Zhang Zekun's avatar Zhang Zekun Committed by Greg Kroah-Hartman
Browse files

powerpc/kexec: Fix return of uninitialized variable


[ Upstream commit 83b5a407 ]

of_property_read_u64() can fail and leave the variable uninitialized,
which will then be used. Return error if reading the property failed.

Fixes: 2e6bd221 ("powerpc/kexec_file: Enable early kernel OPAL calls")
Signed-off-by: default avatarZhang Zekun <zhangzekun11@huawei.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20240930075628.125138-1-zhangzekun11@huawei.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fd57d992
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment