Re: [PATCH v2 1/2] powerpc: Free fdt on error in elf64_load()

2021-04-26 Thread Rob Herring
On Wed, 21 Apr 2021 09:36:09 -0700, Lakshmi Ramasubramanian wrote: > There are a few "goto out;" statements before the local variable "fdt" > is initialized through the call to of_kexec_alloc_and_setup_fdt() in > elf64_load(). This will result in an uninitialized "fdt" being passed > to kvfree()

Re: [PATCH v2 1/2] powerpc: Free fdt on error in elf64_load()

2021-04-23 Thread Lakshmi Ramasubramanian
On 4/21/21 9:36 AM, Lakshmi Ramasubramanian wrote: Hi Dan, There are a few "goto out;" statements before the local variable "fdt" is initialized through the call to of_kexec_alloc_and_setup_fdt() in elf64_load(). This will result in an uninitialized "fdt" being passed to kvfree() in this

[PATCH v2 1/2] powerpc: Free fdt on error in elf64_load()

2021-04-21 Thread Lakshmi Ramasubramanian
There are a few "goto out;" statements before the local variable "fdt" is initialized through the call to of_kexec_alloc_and_setup_fdt() in elf64_load(). This will result in an uninitialized "fdt" being passed to kvfree() in this function if there is an error before the call to