On Tue, 29 Apr 2025 15:50:32 +0200, Ahmad Fatoum wrote: > dma_alloc_coherent allocates memory from a special memory region backing > the dma_coherent_pool. When freeing said memory, this needs to be done > with the same pool as argument, but free uses the normal pool used for > all other allocations instead. Failure to do so will trigger memory > corruption during free block merging. > > This likely went unnoticed so far, because most drivers allocate > coherent memory only once in the probe path and only disable DMA. > The coherent memory is then only leaked for the short time between > barebox shutdown and Linux reclaiming all memory anyway. > > [...]
Applied, thanks! [1/1] ARM: v7r: fix TLSF memory pool mix-up https://git.pengutronix.de/cgit/barebox/commit/?id=25889c25d600 (link may not be stable) Best regards, -- Sascha Hauer <s.ha...@pengutronix.de>