Re: [PATCH 09/15] dmaengine: stm32: dmamux: fix device leak on route allocation

From: Johan Hovold
Date: Tue Nov 18 2025 - 04:31:17 EST


On Tue, Nov 18, 2025 at 09:11:30AM +0100, Amelie Delaunay wrote:
> On 11/17/25 17:12, Johan Hovold wrote:
> > Make sure to drop the reference taken when looking up the DMA mux
> > platform device during route allocation.
> >
> > Note that holding a reference to a device does not prevent its driver
> > data from going away so there is no point in keeping the reference.
> >
> > Fixes: df7e762db5f6 ("dmaengine: Add STM32 DMAMUX driver")
> > Cc: stable@xxxxxxxxxxxxxxx # 4.15
> > Cc: Pierre-Yves MORDRET <pierre-yves.mordret@xxxxxxxxxxx>
> > Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
>
> Reviewed-by: Amelie Delaunay <amelie.delaunay@xxxxxxxxxxx>

Thanks for reviewing.

Johan