diff options
author | Lakshmi Ramasubramanian <nramas@linux.microsoft.com> | 2021-04-21 19:36:10 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2021-04-27 00:28:26 +0300 |
commit | 031cc263c037a95e5d1249cbd3d55b77021f1eb8 (patch) | |
tree | 64e8a1eff5e91005d793d6da01f8135218b73d93 /Documentation/devicetree/bindings/devfreq | |
parent | a45dd984dea9baa22b15fb692fe870ab5670a4a0 (diff) | |
download | linux-031cc263c037a95e5d1249cbd3d55b77021f1eb8.tar.xz |
powerpc: If kexec_build_elf_info() fails return immediately from elf64_load()
Uninitialized local variable "elf_info" would be passed to
kexec_free_elf_info() if kexec_build_elf_info() returns an error
in elf64_load().
If kexec_build_elf_info() returns an error, return the error
immediately.
Signed-off-by: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210421163610.23775-2-nramas@linux.microsoft.com
Diffstat (limited to 'Documentation/devicetree/bindings/devfreq')
0 files changed, 0 insertions, 0 deletions