Re: [PATCH] dma: return NULL on dma_alloc_coherent failure

Sascha Hauer <[email protected]> Fri, 10 Jul 2026 23:35:20 +0200
Newsgroups org.infradead.lists.barebox
Message-ID <[email protected]>
On Thu, 09 Jul 2026 15:41:05 +0200, Ahmad Fatoum wrote:
> The majority of our calls to dma_alloc_coherent check for a NULL return
> that would indicate an error as that's the Linux API as well.
> 
> In barebox, dma_alloc_coherent panics though. This mostly doesn't matter,
> because these are mostly fixed size allocations at driver probe time,
> but we have some older code like the Freescale UDC driver that allocates
> coherent memory out of a poller context.
> 
> [...]

Applied, thanks!

[1/1] dma: return NULL on dma_alloc_coherent failure
      https://git.pengutronix.de/cgit/barebox/commit/?id=467f5e1cc300 (link may not be stable)

Best regards,
-- 
Sascha Hauer <[email protected]>