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 1A1C93A901C for ; Tue, 3 Feb 2026 14:25:37 +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=1770128738; cv=none; b=KEVb+8zgbe4D19LBGg8URF1pigoNJGRSNvSIxEld8WO+wkTrDSoi25/QEJbqgyDUXYtX7XTVgzZ32wVEZjNppYwGxXTI0C/JkBRgESrtyT2snHOsnRwYXxpMP8LdNXUpPszPbzdtfNnL9D6A6WNGqF0Atq8Yw1xO3tVHCtd9Jos= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770128738; c=relaxed/simple; bh=4j0M4LA173gOlpBxGMQ/X8y/W1R+CwX4Tk04MzuEcak=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=rS1OTEZVkC4LtHmIjZ0mkYMpqv+TJcPq0uBp9klE/gZx6L1+KyDUy6u1gEdYow36Jxvctg0uTvsJYblOrJDpQMdXYoeoYjjIUNuJSAbMxKgvmcoqwxXFK6WVMzQsFertxC1pYOSHwF03NTzysst9/yL55DQE30Rdag1Q2wKSi/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KrI3AKr3; 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="KrI3AKr3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55A79C116D0; Tue, 3 Feb 2026 14:25:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770128737; bh=4j0M4LA173gOlpBxGMQ/X8y/W1R+CwX4Tk04MzuEcak=; h=Subject:To:Cc:From:Date:From; b=KrI3AKr3TrhBMPSkEP8sVh+n7Bhi3AcIPCZEORRG6TZMC03g/DlqXaeYDAqNopU6o 72/rewby/n8hmqzJ+YfjJEFa4yZMocdcJRCHNYzqYvCsTgqJMkTn4+kxkd5sBG0K3W FMfNl5H8fn2yPhbp9cw68pBwQmZuUohx12bXGg9c= Subject: FAILED: patch "[PATCH] drm/imx/tve: fix probe device leak" failed to apply to 5.10-stable tree To: johan@kernel.org,Frank.Li@nxp.com,mripard@kernel.org,p.zabel@pengutronix.de Cc: From: Date: Tue, 03 Feb 2026 15:25:24 +0100 Message-ID: <2026020324-unsure-backfield-4511@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 5.10-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-5.10.y git checkout FETCH_HEAD git cherry-pick -x e535c23513c63f02f67e3e09e0787907029efeaf # git commit -s git send-email --to '' --in-reply-to '2026020324-unsure-backfield-4511@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From e535c23513c63f02f67e3e09e0787907029efeaf Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Thu, 30 Oct 2025 17:34:56 +0100 Subject: [PATCH] drm/imx/tve: fix probe device leak Make sure to drop the reference taken to the DDC device during probe on probe failure (e.g. probe deferral) and on driver unbind. Fixes: fcbc51e54d2a ("staging: drm/imx: Add support for Television Encoder (TVEv2)") Cc: stable@vger.kernel.org # 3.10 Cc: Philipp Zabel Reviewed-by: Frank Li Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20251030163456.15807-1-johan@kernel.org Signed-off-by: Maxime Ripard diff --git a/drivers/gpu/drm/imx/ipuv3/imx-tve.c b/drivers/gpu/drm/imx/ipuv3/imx-tve.c index c5c6e070cc06..e861b8b9d8fa 100644 --- a/drivers/gpu/drm/imx/ipuv3/imx-tve.c +++ b/drivers/gpu/drm/imx/ipuv3/imx-tve.c @@ -528,6 +528,13 @@ static const struct component_ops imx_tve_ops = { .bind = imx_tve_bind, }; +static void imx_tve_put_device(void *_dev) +{ + struct device *dev = _dev; + + put_device(dev); +} + static int imx_tve_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -549,6 +556,12 @@ static int imx_tve_probe(struct platform_device *pdev) if (ddc_node) { tve->ddc = of_find_i2c_adapter_by_node(ddc_node); of_node_put(ddc_node); + if (tve->ddc) { + ret = devm_add_action_or_reset(dev, imx_tve_put_device, + &tve->ddc->dev); + if (ret) + return ret; + } } tve->mode = of_get_tve_mode(np);