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 AD490488D99 for ; Wed, 29 Jul 2026 13:02:12 +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=1785330139; cv=none; b=NbMEhyPAzdDt3kNUBZz9yt0lH3dtvepMatxivkIBElcVoz+sYe4yZ/veHKSYGJInflOQoZBod+QkOrBcrdzQSMkRiyfwKbAmRNnikCOD6yN2awPCx+NWacbsT2uq0YZU7dF+B60rtvxzM6ZNaONOHMP+b1RqU8b0UO1MdJydrY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785330139; c=relaxed/simple; bh=bvIMxq5JSlIYttO9app9ApVvoclMTAlXTJd5CrcXfeI=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=GNV8/oMNnm599JL02wy6q80nFaqBHdfJbNctsu4gBRsm9mqvsbJ1m2wUt+3weCSWN8ji1vuv8VGY1hH/o6IxFMfOrgrp8k7yMLpmHmdhLb6s6as+Nvk781kzrwGSvc4cz93i8qZOC92ciFcskocMC7GcvtJ8Xga34Z7m0l4dLGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Z5j9GXEx; 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="Z5j9GXEx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 158971F00A3A; Wed, 29 Jul 2026 13:02:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785330130; bh=8zAWtvtdvy8Yci87ny391ZXr/EFOm0i6iSvhCXYK5fs=; h=Subject:To:Cc:From:Date; b=Z5j9GXExNcq25f4lk2k+0btlpAshq6PVbfLBNC8uuXjDRk/BdMk13yHI5WWdfuGtH aF4m32IxksvtWyc5dDubifJix5jytaZjQMOq/0zHIFd0iv6uLt1rY5h42sJaXd1MK1 LLPSxtqSUC3e75FaX2lzzfGXgP0WCWVR+jJhIqjY= Subject: FAILED: patch "[PATCH] media: ti: vpe: unwind v4l2 device registration on probe" failed to apply to 5.10-stable tree To: mhun512@gmail.com,ae878000@gmail.com,hverkuil+cisco@kernel.org,y-abhilashchandra@ti.com Cc: From: Date: Wed, 29 Jul 2026 15:01:38 +0200 Message-ID: <2026072938-citation-surely-2ef4@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 e0f1c9a90ef665f2587c274a8fed59f2dfc575a6 # git commit -s git send-email --to '' --in-reply-to '2026072938-citation-surely-2ef4@gregkh' --subject-prefix 'PATCH 5.10.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From e0f1c9a90ef665f2587c274a8fed59f2dfc575a6 Mon Sep 17 00:00:00 2001 From: Myeonghun Pak Date: Sun, 26 Apr 2026 22:16:31 +0900 Subject: [PATCH] media: ti: vpe: unwind v4l2 device registration on probe error If the vpe_top resource is missing, vpe_probe() returns -ENODEV after v4l2_device_register() has succeeded. Probe failures do not call the driver's remove callback, so the v4l2 device remains registered on that error path. Route that failure through the existing v4l2_device_unregister() unwind label, matching the other errors after v4l2_device_register(). Fixes: 4d59c7d45585 ("media: ti-vpe: vpe: Add missing null pointer checks") Cc: stable@vger.kernel.org Co-developed-by: Ijae Kim Signed-off-by: Ijae Kim Signed-off-by: Myeonghun Pak Reviewed-by: Yemike Abhilash Chandra Signed-off-by: Hans Verkuil diff --git a/drivers/media/platform/ti/vpe/vpe.c b/drivers/media/platform/ti/vpe/vpe.c index a7e5a85e72a1..81bd1f9cee30 100644 --- a/drivers/media/platform/ti/vpe/vpe.c +++ b/drivers/media/platform/ti/vpe/vpe.c @@ -2539,7 +2539,8 @@ static int vpe_probe(struct platform_device *pdev) "vpe_top"); if (!dev->res) { dev_err(&pdev->dev, "missing 'vpe_top' resources data\n"); - return -ENODEV; + ret = -ENODEV; + goto v4l2_dev_unreg; } /*