[PATCH] dma: return NULL on dma_alloc_coherent failure
Sascha Hauer
s.hauer at pengutronix.de
Fri Jul 10 14:35:20 PDT 2026
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 <s.hauer at pengutronix.de>
More information about the barebox
mailing list