]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kexec: Fix build failure from uninitialised variable
authorRussell Currey <ruscur@russell.cc>
Wed, 10 Aug 2022 05:43:31 +0000 (15:43 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 10 Aug 2022 05:55:20 +0000 (15:55 +1000)
commitfa6be27efcae067db4045666c58f73bde3d36afa
tree4d24aa1f943b19d3271d6d2acd3648aaf99bfecb
parentd9858ce221054d7db2a50aec4ea62ace3d08efe0
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: 1477c76299bb ("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
arch/powerpc/kexec/file_load_64.c