Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2223612pxp; Mon, 7 Mar 2022 10:43:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxR9FEVkLaPMsbj0VqlJvlS3zQ1ehOlj79ZeFHjxnIv/3d4051kYF4Dj8YaRKP4BZTa8r0 X-Received: by 2002:a05:6402:2998:b0:416:55d4:b5d9 with SMTP id eq24-20020a056402299800b0041655d4b5d9mr3720202edb.134.1646678613080; Mon, 07 Mar 2022 10:43:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646678613; cv=none; d=google.com; s=arc-20160816; b=Hbu59OFSK9U4l0SRXsvAph+/NVrkiVT+dlcGEgoCJFiIHAikuJFo3O9m9Iq1rc61Mf VDtgu5QZjpeqIwpGqk0muKr2Gg/Eda2keWx/VpxqKJOTeZ0dG0j0gVJSOgz9hO1ebc70 pgaW45b3ccQLl9jFYirSjxQ0DxIwkj4YjX6wrH8xMRJrI/NCAGl30AJVCNQ1Kj42Nctw bV97bh3Z7Xln/Ic39wyFizO1R4xi60HtHofIsnx4OV9XlGTw/Wyf/SJQjA3PPN/npNPJ sdr86KeMOJgjtoA6DyMQO6ADs4dw1y0rKCHd9HIH8rGuGwCIUU632xUwtHn75vYps02a t2ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=tRRo5SsuHIawQXyv+1LDX8GI9Yfh3JzZDzKyafCrNVg=; b=NGw3FdL/BDLVxORic10kxvqad/9MYQOqATQ1iI3sLw353n7tIV1Evkqfd0rCGWPKHL 6iavvOt78YBabj8c2Ye/P0qW85H846JtePqxf3NMcSVsFK2f8YGHypUwYvgCUjOxoqeO ZMwvOogVgn/pT6lWIK4gptpgMBEQPXUv5D6xbQX+DMyGueLQseMRBMwUj3HGo0y74C8J FVUfMFtPiQi3iCxzTpdAf9MPoIJ4sXut1QuD7ddPvL6Z2ac/AO38VE3/48e7zCKcuBF7 /zP/Vn+rdpAdoEaEdy8yD2P7SaiqHi6GZ72/5bseYJygSnBJb5Veb7ElOKmCsE/2V99Q IOdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ccCdse4v; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn20-20020a1709070d1400b006da97788d2esi9704468ejc.566.2022.03.07.10.43.09; Mon, 07 Mar 2022 10:43:33 -0800 (PST) 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=@gmx.net header.s=badeba3b8450 header.b=ccCdse4v; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240359AbiCGN0p (ORCPT + 99 others); Mon, 7 Mar 2022 08:26:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbiCGN0n (ORCPT ); Mon, 7 Mar 2022 08:26:43 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A083682D03; Mon, 7 Mar 2022 05:25:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1646659542; bh=/O6l7hkL0uaacIQ/iMx/QBKyPp5fhtRwIBhUp3/cTu4=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=ccCdse4vpkfQI5F08kiPQ6PbQowNCfVJXRx3NVBLWVYFK1/TGbh+1VUT7+PLyhdh0 kYfNIModpIgxB0p3u9eNJuVPS+cjGLiCIvcU0JqCUkWs3yZymyniTBFgJB/uRlL7wv 97Xfw2PLCISx4JA55rbKZv5+vJmWe0ppOuCMVLbw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.169.192]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MI5QF-1nLU4g38PX-00F9vK; Mon, 07 Mar 2022 14:25:41 +0100 Message-ID: Date: Mon, 7 Mar 2022 14:25:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] omapfb: Add missing of_node_put() in dvic_probe_of Content-Language: en-US To: Miaoqian Lin , Rob Clark , Tomi Valkeinen , Dave Airlie , linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20220307123816.31888-1-linmq006@gmail.com> From: Helge Deller In-Reply-To: <20220307123816.31888-1-linmq006@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:dZ56hsbY+6HJ6VDAQ/N9tk9Ko4iaHAHR03UaXmJm1eaWw1Mh/vB DG+3M82ZwLfE3FHRHEnwXmyUxnbSywthcLabvt57wn7yyuk6JkLuZ/mPez3kzsD0y9yHdSe /dq5BcbG3cGaJorKcEbmMX3J8mUatxag7lH4gshRI/XQjUTAUkvfC614OU2YwUkuHz3GttB YlT62iyEoYjBzGPrB2N/g== X-UI-Out-Filterresults: notjunk:1;V03:K0:h2qOqFjmeLA=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IYI2poQgRM7HyzdiqkiHHvwnM7/Dq/36hqnbUhza vfDfrWcHa4PNjs= X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 On 3/7/22 13:38, Miaoqian Lin wrote: > 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 applied to the fbdev for-next tree. Thanks! Helge > --- > 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 *pde= v) > adapter_node =3D of_parse_phandle(node, "ddc-i2c-bus", 0); > if (adapter_node) { > adapter =3D of_get_i2c_adapter_by_node(adapter_node); > + of_node_put(adapter_node); > if (adapter =3D=3D NULL) { > dev_err(&pdev->dev, "failed to parse ddc-i2c-bus\n"); > omap_dss_put_device(ddata->in);