diff options
author | Russell Currey <ruscur@russell.cc> | 2022-08-10 15:43:31 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-08-10 15:55:20 +1000 |
commit | 83ee9f23763a432a4077bf20624ee35de87bce99 (patch) | |
tree | 4d24aa1f943b19d3271d6d2acd3648aaf99bfecb /arch/x86/kvm/svm/svm.c | |
parent | 59bab33a4f57f886c5f8a4d1f2bed728ec185d16 (diff) | |
download | linux-83ee9f23763a432a4077bf20624ee35de87bce99.tar.gz linux-83ee9f23763a432a4077bf20624ee35de87bce99.tar.bz2 linux-83ee9f23763a432a4077bf20624ee35de87bce99.zip |
powerpc/kexec: Fix build failure from uninitialised variable
clang 14 won't build because ret is uninitialised and can be returned if
both prop and fdtprop are NULL. Drop the ret variable and return an
error in that failure case.
Fixes: b1fc44eaa9ba ("pseries/iommu/ddw: Fix kdump to work in absence of ibm,dma-window")
Suggested-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220810054331.373761-1-ruscur@russell.cc
Diffstat (limited to 'arch/x86/kvm/svm/svm.c')
0 files changed, 0 insertions, 0 deletions