diff options
| author | Jason Gunthorpe <jgg@nvidia.com> | 2026-10-02 20:31:38 -0300 |
|---|---|---|
| committer | Ard Biesheuvel <ardb@kernel.org> | 2026-10-06 12:18:41 +0200 |
| commit | d83fe67339f2032d8facf0fe8a047a4c5d15394f (patch) | |
| tree | 99894c1a5c623ebeef77993c2d00e0936944825b /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 1e50ed98255b2bf68fa881595c44c6be2a037ac0 (diff) | |
| download | linux-next-d83fe67339f2032d8facf0fe8a047a4c5d15394f.tar.gz linux-next-d83fe67339f2032d8facf0fe8a047a4c5d15394f.zip | |
efi/libstub: Fix error unwind freeing fdt in allocate_new_fdt_and_exit_boot()
Sashiko says fdt_addr can point to either an allocated fdt or the fdt from
get_fdt() which is memory owned by FW.
Only the allocated fdt should be freed on the error unwind path. Use a
dedicated variable for the allocation's size so that the free does not get
confused.
Fixes: 4fc8e738ff3e ("efi: libstub: remove DT dependency from generic stub")
Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
