From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6867FC19F2A for ; Thu, 11 Aug 2022 16:17:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235522AbiHKQRm (ORCPT ); Thu, 11 Aug 2022 12:17:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237997AbiHKQQp (ORCPT ); Thu, 11 Aug 2022 12:16:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10802C2EB0; Thu, 11 Aug 2022 08:59:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 33AD161341; Thu, 11 Aug 2022 15:59:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F6B7C433D6; Thu, 11 Aug 2022 15:59:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660233588; bh=61HETrOWiV+nAOKQLT0ew2bzYevhgS2U+oCmiRYnM1E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QG5kYELXiBr6amSV2hbOSR7zgzU1FdelXO051EiEqPzTDPHW3Q6DJmhDnP5m+omBg Skf0W4jqUvpZw7bN+6fE/FiQJ5PG4GfaSkrjY/D+3rxI/+QiSFnWOE3ljK5B1gFmvm j+CtOnUw5hDX9afehlIw6VhLvECm4L3a/XIveLNyN/mGgtTyLGOSfjBmRO/khunhG2 A42WECkY3Pg+6/iZI7w/+IcTLx/UK2bKxwv5DCKSrqO60m5sK07dIHj0me7taHBGib 6VqcaX5Qalihalt5LnYwNpoiCC8SGB7g17WcQVuHsVmi+b/vGbGfcAEx2f2qgIMpQc t6FKOLa6p0XBA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Yang Yingliang , Hulk Robot , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin , prabhakar.mahadev-lad.rj@bp.renesas.com, johan@kernel.org, laurent.pinchart@ideasonboard.com, cai.huoqing@linux.dev, linux-media@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 25/69] media: davinci: vpif: add missing of_node_put() in vpif_probe() Date: Thu, 11 Aug 2022 11:55:34 -0400 Message-Id: <20220811155632.1536867-25-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220811155632.1536867-1-sashal@kernel.org> References: <20220811155632.1536867-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Yingliang [ Upstream commit bb45f5433f23cf103ba29c9692ee553e061f2cb4 ] of_graph_get_next_endpoint() returns an 'endpoint' node pointer with refcount incremented. The refcount should be decremented before returning from vpif_probe(). Reported-by: Hulk Robot Signed-off-by: Yang Yingliang Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/davinci/vpif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/davinci/vpif.c b/drivers/media/platform/davinci/vpif.c index 8ffc01c606d0..b4c78dce4d41 100644 --- a/drivers/media/platform/davinci/vpif.c +++ b/drivers/media/platform/davinci/vpif.c @@ -469,6 +469,7 @@ static int vpif_probe(struct platform_device *pdev) endpoint); if (!endpoint) return 0; + of_node_put(endpoint); /* * For DT platforms, manually create platform_devices for -- 2.35.1