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 8F5F444A724 for ; Tue, 20 Jan 2026 15:04:17 +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=1768921457; cv=none; b=FXqIT5b2JUCmAP6KHkd0JnoZ5FKY8i4PUeZtRsD8Tk38l4y19f3QU9Iam9lWRzTTrrW14jnJV2guSyY5Nq2q6m0VNGuyMyjCS+yDUIwcQq17epfetf5HZx5fQMbftcArkVOKZNxVUjB5VafX4ql9PiuPJLjk4fv0oJFslko6ldw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768921457; c=relaxed/simple; bh=1wzPWIDETq6q8gv7HRC5Ors9LfMVAyQRSVzrafl8RLQ=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=i7EQ4dyGXFSoJpv0fY4cdPzpafjLKqY2qZ70UXJA4RPrvkc/Ohqd5+oftDWK4UNLB5Bh3iD0m6Fp0DFM0NK9OSyzp+yZRFeKJSd6iMFm8pYFYhPSrDtID7n2PsjQQ3JvZWNnVxxFK/lRpvhTieOYsX4JljmMERa0w/WP+cM1IUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qXIAhQjZ; 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="qXIAhQjZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B093FC16AAE; Tue, 20 Jan 2026 15:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768921457; bh=1wzPWIDETq6q8gv7HRC5Ors9LfMVAyQRSVzrafl8RLQ=; h=Subject:To:Cc:From:Date:From; b=qXIAhQjZjWMxeM1v3vxoP+Y1BQOVnWo1+uUU7t1+pL6Z/H+ZXv5EkuzmgTbx4/Ell NMDxWSAcF0vN00MWkRGe1FV2csBTvZmHwST8GIhZz2otcyouGwsKHywANuWjpX15D8 2B8gtZo82r/SDY6zYcd+hyRHvQIBGpCOO+pDKFQk= Subject: FAILED: patch "[PATCH] dmaengine: stm32: dmamux: fix OF node leak on route" failed to apply to 6.6-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:05 +0100 Message-ID: <2026012005-grid-smell-308a@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.6-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.6.y git checkout FETCH_HEAD git cherry-pick -x b1b590a590af13ded598e70f0b72bc1e515787a1 # git commit -s git send-email --to '' --in-reply-to '2026012005-grid-smell-308a@gregkh' --subject-prefix 'PATCH 6.6.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);