Re: [PATCH 4/6] efi: Avoid pool allocation in efi_get_memory_map_alloc()

2024-07-31 Thread Simon Glass
Hi Heinrich, On Thu, 25 Jul 2024 at 10:38, Heinrich Schuchardt wrote: > > On 25.07.24 15:56, Simon Glass wrote: > > This function returns the memory map, allocating memory for it. But it > > can just use malloc() directly, rather than calling the pool allocator. > > Update it. > > The size of the

Re: [PATCH 4/6] efi: Avoid pool allocation in efi_get_memory_map_alloc()

2024-07-25 Thread Heinrich Schuchardt
On 25.07.24 15:56, Simon Glass wrote: This function returns the memory map, allocating memory for it. But it can just use malloc() directly, rather than calling the pool allocator. Update it. The size of the memory map may exceed CONFIG_SYS_MALLOC_LEN which tends to be astonishingly small: 1 Mi