diff options
| author | 2026-10-02 20:31:39 -0300 | |
|---|---|---|
| committer | 2026-10-06 12:23:43 +0200 | |
| commit | fd4465f49b53c7379d10610f8edb71f77366a5b7 (patch) | |
| tree | 896bfb57d8c9cb684ebe241503e7641db1d00561 /scripts/Makefile.thinlto | |
| parent | efi/libstub: Fix error unwind freeing fdt in allocate_new_fdt_and_exit_boot() (diff) | |
efi/riscv: libstub: Don't set image_size in handle_kernel_image()
Sashiko points out the image_size should only be set if image_addr was
reassigned to some allocated memory. If image_size is not zero then the
caller will free the image_addr pointer.
efi_kaslr_relocate_kernel() never works like that, if it changes
image_addr to allocated memory the free is done through reserve_size.
Fixes: b7ac4b8ee73d ("riscv: libstub: Implement KASLR by using generic functions")
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
