Re: [PATCH 04/15] dmaengine: dw: dmamux: fix OF node leak on route allocation failure

From: Andy Shevchenko
Date: Mon Nov 17 2025 - 12:28:32 EST


On Mon, Nov 17, 2025 at 05:12:47PM +0100, Johan Hovold wrote:
> Make sure to drop the reference taken to the DMA master OF node also on
> late route allocation failures.

...

> +put_dma_spec_np:
> + of_node_put(dma_spec->np);

Can we use __free() instead?

(Just in case you are going to question the appearance of cleanup.h and the
respective class in of.h, it's available in the closest stable, i.e.
v6.1.108 onwards).

--
With Best Regards,
Andy Shevchenko