From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FB7F44A721 for ; Tue, 20 Jan 2026 15:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768921466; cv=none; b=eIdsW5tKWomRKv1eEUJkyn6XRaKKykRdeYB+CPqBYiRdqqexaT3AgyICwlaloZ/YZoWTvdy5iBvkbEaEKfrqL2l5grpcB22xzybdymDP6KihiG/GvDvYASHELE0NTScU1H39TH5/YhkyzEyuE3TI0hvuTE6bdM9dXXqFDBOMYxA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768921466; c=relaxed/simple; bh=KmusDYz52w+InxoqqghVYuuWY8FuWtQsvulJn7csp2g=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=gO7CKLcnqqZpr19V8sQhH8W47iN1XOultVAyx42D4PuaYwmyUD68vLhh76f4v/cpRWIOcLUv7dNRyNUuxv7j6VSIPI4ofN+1IFGoCd1pjdN/tzjbZbhRubaHg9E+rJB3WVmSxyKIhL4wsThHMCKxrAK4j5DI1U6jJvUhhWkln4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hFgcGStc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hFgcGStc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64C74C19423; Tue, 20 Jan 2026 15:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768921465; bh=KmusDYz52w+InxoqqghVYuuWY8FuWtQsvulJn7csp2g=; h=Subject:To:Cc:From:Date:From; b=hFgcGStcNujITBJ+2Z1++rAgZLsqZrs5HlQPoHyVB24Zcg03LOGu1p17QCmyfmorL VW0AoOKqPSA/WyDX7xSuPEieU6M3RU7b1XvzAuznKdJmkqgiT08kbLHf/QkYURs1Y0 jt3qgasAaK7g4zK5ObXWg36mHf8XkiCWaDMCbeXQ= Subject: FAILED: patch "[PATCH] dmaengine: stm32: dmamux: fix OF node leak on route" failed to apply to 6.1-stable tree To: johan@kernel.org,amelie.delaunay@foss.st.com,pierre-yves.mordret@foss.st.com,vkoul@kernel.org Cc: From: Date: Tue, 20 Jan 2026 16:04:06 +0100 Message-ID: <2026012006-swipe-grumbling-dc05@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x b1b590a590af13ded598e70f0b72bc1e515787a1 # git commit -s git send-email --to '' --in-reply-to '2026012006-swipe-grumbling-dc05@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From b1b590a590af13ded598e70f0b72bc1e515787a1 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Mon, 17 Nov 2025 17:12:53 +0100 Subject: [PATCH] dmaengine: stm32: dmamux: fix OF node leak on route allocation failure Make sure to drop the reference taken to the DMA master OF node also on late route allocation failures. Fixes: df7e762db5f6 ("dmaengine: Add STM32 DMAMUX driver") Cc: stable@vger.kernel.org # 4.15 Cc: Pierre-Yves MORDRET Signed-off-by: Johan Hovold Reviewed-by: Amelie Delaunay Link: https://patch.msgid.link/20251117161258.10679-12-johan@kernel.org Signed-off-by: Vinod Koul diff --git a/drivers/dma/stm32/stm32-dmamux.c b/drivers/dma/stm32/stm32-dmamux.c index 791179760782..2bd218dbabbb 100644 --- a/drivers/dma/stm32/stm32-dmamux.c +++ b/drivers/dma/stm32/stm32-dmamux.c @@ -143,7 +143,7 @@ static void *stm32_dmamux_route_allocate(struct of_phandle_args *dma_spec, ret = pm_runtime_resume_and_get(&pdev->dev); if (ret < 0) { spin_unlock_irqrestore(&dmamux->lock, flags); - goto error; + goto err_put_dma_spec_np; } spin_unlock_irqrestore(&dmamux->lock, flags); @@ -165,6 +165,8 @@ static void *stm32_dmamux_route_allocate(struct of_phandle_args *dma_spec, return mux; +err_put_dma_spec_np: + of_node_put(dma_spec->np); error: clear_bit(mux->chan_id, dmamux->dma_inuse);