[PATCH] of: fdt: fix double free in fdt_ensure_space

Sascha Hauer s.hauer at pengutronix.de
Mon Feb 23 02:21:13 PST 2026


On Sun, 15 Feb 2026 18:24:19 +0100, Ahmad Fatoum wrote:
> fdt_ensure_space() frees the original buffer on memalign_realloc()
> failure, but on error, the buffer is already freed by
> memalign_realloc() unlike realloc().
> 
> Fix this by aligning memalign_realloc() behavior with normal realloc()
> and adapting callers accordingly.
> 
> [...]

Applied, thanks!

[1/1] of: fdt: fix double free in fdt_ensure_space
      https://git.pengutronix.de/cgit/barebox/commit/?id=3d6d2414d85e (link may not be stable)

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




More information about the barebox mailing list