Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9EB5C3FF1B8 for ; Mon, 27 Jul 2026 13:29:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785158946; cv=none; b=nz/sAr3AcKAIyv0du8JfNJUcf/7m884xZz0YqpAq8bnt70yT5DWWFzk6Ays8fKXsnNFaFyS/afuRs9M5x74WFYj1hTBQvLpLKgEFMEUz8dOpb7JG/x3Qj8ZydSA7L543P8kOCVwZ5X0sFQrjtEQtC0K4TcwNBX9a7ILwhK69kf8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785158946; c=relaxed/simple; bh=8sQsewt+RHmwxt22/apO6MGUzTxFytRnc9dA2GUzfLE=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Uj0ZbTSdPw4VHbubq6BISGbs5F3j8bqWvPs3lKruVQSPXJ97Wkn7/sjemPPfAa8zRw6LumTj/X8+5m3GLwzZ0BrxSQvXJ8/qf6plUP9/wVlawJhWkPhwB+W9IA2+3k1SjYnUAOtJffY39iv/T7NpWYvuF7rqHk5lrM2TROKP7ac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j13OPBOi; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="j13OPBOi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 900351F000E9; Mon, 27 Jul 2026 13:29:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785158945; bh=VqzQDosLLSe0res7YD6Gs6c/DoVMYfHQL1Qc6GALPMk=; h=Subject:To:Cc:From:Date; b=j13OPBOibAnSV42JykIISOIUBNXssAV5I9Nd76jfpJKOLdn9YRMrfvFV9mxWQy4c0 92SYjqghz4aHABJzX3In8Rl0cWO1yEfZGERJpSXA84rS1+C7cWtJvdsd7Ey6WcCUcO 1hP6Gm9ZHRAdavNUZdpnGUymDuzgi5pzfXJ4d1rg= Subject: FAILED: patch "[PATCH] usb: musb: omap2430: Do not put borrowed of_node in probe" failed to apply to 6.12-stable tree To: lgs201920130244@gmail.com,gregkh@linuxfoundation.org,johan@kernel.org,stable@kernel.org Cc: From: Date: Mon, 27 Jul 2026 15:28:52 +0200 Message-ID: <2026072752-stoning-canister-689f@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.12-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.12.y git checkout FETCH_HEAD git cherry-pick -x c947360ae63eee1c9eacc030dd6f5a53f717addf # git commit -s git send-email --to '' --in-reply-to '2026072752-stoning-canister-689f@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From c947360ae63eee1c9eacc030dd6f5a53f717addf Mon Sep 17 00:00:00 2001 From: Guangshuo Li Date: Mon, 13 Jul 2026 19:47:11 +0800 Subject: [PATCH] usb: musb: omap2430: Do not put borrowed of_node in probe omap2430_probe() stores pdev->dev.of_node in a local np variable. This is a borrowed pointer and the probe function does not take a reference to it. The success and error paths nevertheless call of_node_put(np). This drops a reference that is owned by the platform device, and can leave pdev->dev.of_node with an unbalanced reference count. Do not put the borrowed platform device node from omap2430_probe(). References taken for the child MUSB device are handled by the device core, and the ctrl-module phandle reference is still released separately. Fixes: ffbe2feac59b ("usb: musb: omap2430: Fix probe regression for missing resources") Cc: stable Reviewed-by: Johan Hovold Signed-off-by: Guangshuo Li Link: https://patch.msgid.link/20260713114711.955253-1-lgs201920130244@gmail.com Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 333ab79f0ca9..6e749faac33c 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -454,7 +454,6 @@ static int omap2430_probe(struct platform_device *pdev) dev_err(&pdev->dev, "failed to register musb device\n"); goto err_disable_rpm; } - of_node_put(np); return 0; @@ -464,7 +463,6 @@ static int omap2430_probe(struct platform_device *pdev) if (!IS_ERR(glue->control_otghs)) put_device(glue->control_otghs); err_put_musb: - of_node_put(np); platform_device_put(musb); return ret;