From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794048166; b=KqUX/FWYmAcOml404E9ZPUBu8cjJgwLrFLiUYCzxG6Rc/l15junMw9WYbrWMfLkYwgj1 sQHO8W9KqCC2k9HoM6tKxquEw/DqsnteUn/2/0ZrZUXh/d4GlJlfPj4gQ+tenxAiVQHXq onAwCviaHLPfnk8sczZp6+WpJUytihLp7ilIyLHOPoiXODlR0eX0p7zu62kII09GjMVib U+vRVrvP4/uqaYSDmC0SzcE2dfON5YRvvStMa7Ziedzv+AYMLZ+c7bGW8QLyrHpMmpNCa Z1t1Ak/KMi538SsUC150ZbgaIfDQ55OhXtfKEWNMgq9XVGK51esjJL3jOxOGpvhPlJA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794048166; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=6jTMDBBMeisWBHnWD2ayF4KodpZLbW39wh8SOWKVmKI=; b=zPJaBaGcoUlzx3E0vpYQYr0J3aExRAR1u2JbXmY/WA9s+bSmD7iA5aUyObOZZw66SKee /DrK75ZpTJ53VYquoeZWsIfhq/xtA4kpDGbBFwdH5KndC3gqeJlF8DhaTkGiVZgXxcVsc Q4P6AZlB7FHMGTxEbvkOZFGdBSkv8rhS5ae6hf6hDEjqPALZ5B6wNsR1Vej2P9CECG/gS ou3qk7Y5AM78rcmHOoh49gOMV1kQ/0btCdKSXGqYO9kcYbfszoI8TbhuiYjjSMkN9cv8O Wyj1ip2yd4R83FkhyB9AK473p5d2CT7jc/XUCMWer59ydS2D2E2bJvKu0aplG6WPUBg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oIdp1jgU; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D109E606A326 for ; Sat, 7 Nov 2026 10:42:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oIdp1jgU Received: by smtp.kernel.org (Postfix) with ESMTPSA id 501071F0089F; Sat, 7 Nov 2026 10:42:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794048165; bh=6jTMDBBMeisWBHnWD2ayF4KodpZLbW39wh8SOWKVmKI=; h=From:To:Cc:Subject:Date; b=oIdp1jgUES4r6J7fsaZWt5iWaL+jSy/MEA5ZhzEGtk8UOjIK8Yy6/RAaUC6DCWbsq mi4o1HJSbjP/MBaET0qRwqxWwbJt9bQcd9XUlCnVQ0Vwmq+DDn4M2PRhtqxwMqHSUL YRm5B3k4U9PNQTynUzW6YH/HZUO80QSczJGxN7pNXhaAtetPIaPA+GJMs6PtsKsDCI h+4YEiy2JvfDoxJiNzaUQMKZ/3nfZmK+i0dmZmQiyEi1BOC9esxfuaTibZlQeHmGLc i+S+LkDmOlPnfvtpVQn1VCoPxY9vJ3rS+o40BpqTojysoY12eLkq0J3ZHV1HLgTlXB Jjhb3iYTs2SMw== From: Sasha Levin To: vulab@iscas.ac.cn, hverkuil+cisco@kernel.org Cc: stable@vger.kernel.org Subject: FAILED: patch "[PATCH] media: vpif_capture: Fix i2c adapter reference leak in vpif_probe()" failed to apply to 6.1-stable tree Date: Sat, 7 Nov 2026 05:42:44 -0500 Message-ID: <20261107054244-failed-6.1-b00fbdad64d4@kernel.org> X-Mailer: git-send-email 2.53.0 X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 b00fbdad64d4ea7d594bc67988c1722fe5b3be50 # git commit -s git send-email --to '' --in-reply-to '20261107054244-failed-6.1-b00fbdad64d4@kernel.org' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From b00fbdad64d4ea7d594bc67988c1722fe5b3be50 Mon Sep 17 00:00:00 2001 From: Wentao Liang Date: Thu, 17 Sep 2026 10:12:22 +0000 Subject: [PATCH] media: vpif_capture: Fix i2c adapter reference leak in vpif_probe() vpif_probe() takes a reference to the i2c adapter with i2c_get_adapter() and passes it to v4l2_i2c_new_subdev_board(), which does not consume it, but the reference is never released, so it is leaked both when the probe succeeds and when it fails after the adapter has been acquired. Release the reference with i2c_put_adapter() on the success path and in the probe_subdev_out cleanup, and initialise i2c_adap so that the cleanup is a no-op when the adapter was never acquired. Fixes: 6ffefff5a9e7 ("V4L/DVB (12906c): V4L : vpif capture driver for DM6467") Cc: stable@vger.kernel.org Signed-off-by: Wentao Liang Signed-off-by: Hans Verkuil --- drivers/media/platform/ti/davinci/vpif_capture.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/ti/davinci/vpif_capture.c b/drivers/media/platform/ti/davinci/vpif_capture.c index 91cb6223561a8..397f3115af5b7 100644 --- a/drivers/media/platform/ti/davinci/vpif_capture.c +++ b/drivers/media/platform/ti/davinci/vpif_capture.c @@ -1602,7 +1602,7 @@ vpif_capture_get_pdata(struct platform_device *pdev, static int vpif_probe(struct platform_device *pdev) { struct vpif_subdev_info *subdevdata; - struct i2c_adapter *i2c_adap; + struct i2c_adapter *i2c_adap = NULL; int subdev_count; int res_idx = 0; int i, err; @@ -1692,9 +1692,12 @@ static int vpif_probe(struct platform_device *pdev) } } + i2c_put_adapter(i2c_adap); + return 0; probe_subdev_out: + i2c_put_adapter(i2c_adap); v4l2_async_nf_cleanup(&vpif_obj.notifier); /* free sub devices memory */ kfree(vpif_obj.sd); -- 2.53.0