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

Johan Hovold
2025-11-18T09:31:05Z

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@vger.kernel.org # 4.15
> > Cc: Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>
> > Signed-off-by: Johan Hovold <johan@kernel.org>
>
> Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com>

Thanks for reviewing.

Johan