On Fri, 16 Oct 2026 09:36:52 +0200, Sascha Hauer wrote:
> dma_alloc() and dma_zalloc() are implemented with xmemalign() and never
> return NULL. That's unlike malloc() and calloc(), and many callers check
> for NULL anyway, so they never get to handle an allocation failure.
> 
> This series adds dma_xalloc() and dma_xzalloc() for callers that rely on
> the allocation to always succeed, switches all callers that don't check
> the result over to them, and finally lets dma_alloc() return NULL on
> allocation failure.
> 
> [...]

Applied, thanks!

[1/3] dma: add dma_xalloc() and dma_xzalloc()
      https://git.pengutronix.de/cgit/barebox/commit/?id=fbf187a7d59e (link may 
not be stable)
[2/3] treewide: use dma_xalloc()/dma_xzalloc() where the result isn't checked
      https://git.pengutronix.de/cgit/barebox/commit/?id=54aeb3aabe4e (link may 
not be stable)
[3/3] dma: let dma_alloc() and dma_zalloc() fail
      https://git.pengutronix.de/cgit/barebox/commit/?id=560334ca9ea0 (link may 
not be stable)

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


Reply via email to