[PATCH 1/2] partitions: efi: use calloc instead of kzalloc

Sascha Hauer s.hauer at pengutronix.de
Tue Oct 22 02:22:02 PDT 2024


On Tue, 22 Oct 2024 10:33:46 +0200, Ahmad Fatoum wrote:
> kzalloc() uses at least DMA_ALIGNMENT as alignment, which is more than
> we need for the data structures that are used to hold the partition info.
> 
> Use the normal allocator to be more efficient with memory.
> 
> 

Applied, thanks!

[1/2] partitions: efi: use calloc instead of kzalloc
      https://git.pengutronix.de/cgit/barebox/commit/?id=7faca080705f (link may not be stable)
[2/2] partition: dos: use xmalloc for unchecked allocations
      https://git.pengutronix.de/cgit/barebox/commit/?id=c528475db3ef (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list