Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1820525imm; Thu, 23 Aug 2018 09:15:46 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzgmlF2h7591xN2NEsISH5b7rmIF/z1kVGSjWHckyxNW9KGilrFI1E6Ps3N1F8x/pGFMYzS X-Received: by 2002:a63:b914:: with SMTP id z20-v6mr28854318pge.396.1535040946505; Thu, 23 Aug 2018 09:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535040946; cv=none; d=google.com; s=arc-20160816; b=P0DzEUGjYAyBYDoI2a1oOUo2CASJKnl9/MjQa4nmv9h8OvuaSTVeakrPFz2J78LyjT 2MJfcLs7qWAdA+JgzDByoqYm1TyBco/WKZNqhDNoKLkUUcs3eOZh2FLb5oT+pmdK6Mvk DDGusbsOh44kQHroWjxcEqljG2579Y+KLaOS+FwBSYYoacbGABtkvv7/D5/HkH+PcYel c+LB++W9ljB8C/4rxHNP87sXuvPi9ROLniqN5dblxPiFPJ6CowxY2eEK7HaR0T41TQC5 kTPuqdepLuBu8+6d+UF7rdVCxvBV801OKacj9UzMRjTOWIO1EOp8W/q+BZfYytKWm1g9 qW9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id:arc-authentication-results; bh=roJLfiTEgcmFGcTr/xyADPj4xXaTzaDEnaE0/XKaFrQ=; b=YoScgRsuz3XimK4CQsgeZCCxLUjImAAel301x27fNvybqV2mk0JqcVT/ONTECmJsQe sIzvVgLCAS4toxqkOako2EXx0DZJEIPzaRzVNZwDFMDHkLHlfZ0D2cEQ67PKiqWDJoAp oCqNpkLjeTqBpCt5o4BV9W3zijqI6EFKQKSD0qYPgAHzF6mpUGEXH13fsXmr76Sts/U6 8KpVsiFWIE9OCB+5GwmEEQnSuIDbCrZxB8HQ94qeaEYFch/9Crz5F40t8CQEJUnJwy1P yfMP7sabxLrpfjTaz0m+8ldwFCUZOeApkk6LSaxtrZVHP1gQrKR7ekRJ1GGyBNk8RjMR ibdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10-v6si4879601pfn.85.2018.08.23.09.15.31; Thu, 23 Aug 2018 09:15:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731907AbeHWPLY (ORCPT + 99 others); Thu, 23 Aug 2018 11:11:24 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:56411 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729022AbeHWPLY (ORCPT ); Thu, 23 Aug 2018 11:11:24 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 9A2C526509E43; Thu, 23 Aug 2018 19:42:00 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.399.0; Thu, 23 Aug 2018 19:41:59 +0800 Message-ID: <5B7E9D86.20209@huawei.com> Date: Thu, 23 Aug 2018 19:41:58 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: , CC: , Subject: Re: [PATCH] gpu: do not double put device node in zx_drm_probe References: <1534472646-10368-1-git-send-email-zhongjiang@huawei.com> In-Reply-To: <1534472646-10368-1-git-send-email-zhongjiang@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ping, Anyone has any objections a about the patch? Best wishes, zhong jiang On 2018/8/17 10:24, zhong jiang wrote: > for_each_available_child_of_node will get and put the node properly, > the following of_node_put will lead to the double put. So just > remove it. > > Signed-off-by: zhong jiang > --- > drivers/gpu/drm/zte/zx_drm_drv.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/zte/zx_drm_drv.c b/drivers/gpu/drm/zte/zx_drm_drv.c > index 6f4205e8..d7b9870 100644 > --- a/drivers/gpu/drm/zte/zx_drm_drv.c > +++ b/drivers/gpu/drm/zte/zx_drm_drv.c > @@ -161,10 +161,8 @@ static int zx_drm_probe(struct platform_device *pdev) > if (ret) > return ret; > > - for_each_available_child_of_node(parent, child) { > + for_each_available_child_of_node(parent, child) > component_match_add(dev, &match, compare_of, child); > - of_node_put(child); > - } > > return component_master_add_with_match(dev, &zx_drm_master_ops, match); > }