[PATCH 1/2] nvme: fix PRP pool resize before first use

Sascha Hauer s.hauer at pengutronix.de
Fri Jul 10 14:38:12 PDT 2026


On Thu, 09 Jul 2026 09:22:51 +0200, Ahmad Fatoum wrote:
> It's not safe to call dma_free_coherent on a NULL pointer. Implement
> dma_realloc_coherent, which correctly handles reallocating a buffer
> without leaking memory and use it to ensure only actually allocated
> buffers are freed.
> 
> 

Applied, thanks!

[1/2] nvme: fix PRP pool resize before first use
      https://git.pengutronix.de/cgit/barebox/commit/?id=7ee7cf65c2f7 (link may not be stable)
[2/2] nvme: pass device to dma dma_alloc/free_coherent
      https://git.pengutronix.de/cgit/barebox/commit/?id=4af7798538c2 (link may not be stable)

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




More information about the barebox mailing list