Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp684902pxb; Tue, 5 Apr 2022 18:42:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHzmW76PC/MTcZ7c60EftLHuoBGDKthj3mG4L5NSMis7NSfHmgklqfR8ZRlhCyE61v9V5W X-Received: by 2002:a17:907:168a:b0:6df:ad44:3009 with SMTP id hc10-20020a170907168a00b006dfad443009mr6222440ejc.176.1649209368982; Tue, 05 Apr 2022 18:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209368; cv=none; d=google.com; s=arc-20160816; b=sexWLQSQBal5Xh3kv8NlR3/6DIk9dwxUjtFYTxG+9ANLknfzWOqXNDF3FQvKTKpFJD SDym4CgWgLzFjLUa4xXsxVUJPuz8WWrPdNG0wM2jYeXU4HZ8ypUqLyxz3b6gwE21lm9n F3ufxQhesZ32yOqOEQkVs7lA8WBIZkE4d3IYAOEtKxq9cFG4Lw7n05Ip0BoaHl7k87tE dEjuqVu1kShWV8I30/VfeICIA9YB5SyTl46D/2dSUXNO45Cywxg8DfIk8OdBfU8JWyvi 6YDcP7DQm+J2puBkOYo6SeJa7OML7dAboqtqckjVTNHDwaVszBsdIYKhnpKyM1qt4S+w Oekg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pLHapSgYMmbi4jj9spsffZWh6QyXnBmD2DNaB/JTmH4=; b=m2/OdIpi+Qc3pwfDGQuV9baQo58bWstt9KpIy0T2CULiSRMFjf4qk5SAlc4cjEqoU9 JHGQN2nkluWVmITjpjlo02aCY4p4di+8ww4yDRFaf/iWm6eVclEZFQ8r5JePzFgEBs+S Tcqp8/1duJgK+uJYQc5k7jpxTrGiiQd9sytdqrq38aUBhtJK3HGliIkGpmIpc33CnOWA +6n+4oUrLxKnrusNg4sus+ncDZqKiGenDAN/RupRGdfqf/ifE6hqizd168qI2rAxar8+ h0nAtUYrcDwqd2ESnR2c9fPcTfw1xI2/IH/romn8vbS7D+J80CwFMN+JIAF33HC7+Ioz sxIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="UgWqn/yb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk22-20020a170906b0d600b006e02928f85esi10311827ejb.568.2022.04.05.18.42.19; Tue, 05 Apr 2022 18:42:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="UgWqn/yb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242329AbiDEIhY (ORCPT + 99 others); Tue, 5 Apr 2022 04:37:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235659AbiDEH77 (ORCPT ); Tue, 5 Apr 2022 03:59:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B42F21C13D; Tue, 5 Apr 2022 00:56:58 -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 ams.source.kernel.org (Postfix) with ESMTPS id 60174B81B14; Tue, 5 Apr 2022 07:56:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1838C340EE; Tue, 5 Apr 2022 07:56:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649145416; bh=KK+VudrWUz/uioNtrgiRdIcswanyWA9dVTY+SNt1vgc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UgWqn/yb4OcmpYPn0atDGriX7jH9Ld+p69KqHOC5T0mzvKRhTjyGBwmSOMc+pUuXV 1qunzY5Z7Ad6z7qWLSJ2q+iIBlh/BtndlSCCncenauv4FJVCshorOfRxcJQcK+Jhoi iX/15QWc0WrKMplF3vzslCLZXaB/GjsxiFqq4XZA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Helge Deller , Sasha Levin Subject: [PATCH 5.17 0398/1126] video: fbdev: omapfb: Add missing of_node_put() in dvic_probe_of Date: Tue, 5 Apr 2022 09:19:05 +0200 Message-Id: <20220405070419.309826211@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miaoqian Lin [ Upstream commit a58c22cfbbf62fefca090334bbd35fd132e92a23 ] The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. Fixes: f76ee892a99e ("omapfb: copy omapdss & displays for omapfb") Signed-off-by: Miaoqian Lin Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c b/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c index 2fa436475b40..c8ad3ef42bd3 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c @@ -246,6 +246,7 @@ static int dvic_probe_of(struct platform_device *pdev) adapter_node = of_parse_phandle(node, "ddc-i2c-bus", 0); if (adapter_node) { adapter = of_get_i2c_adapter_by_node(adapter_node); + of_node_put(adapter_node); if (adapter == NULL) { dev_err(&pdev->dev, "failed to parse ddc-i2c-bus\n"); omap_dss_put_device(ddata->in); -- 2.34.1