Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5338934imm; Tue, 18 Sep 2018 08:02:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZVjzGMpWuc8vTpejLW4jnILh/VpaM0pkZurbyS0HbO+U1QPdY9EevoJQfDSgqd4mNdFjTf X-Received: by 2002:a17:902:2006:: with SMTP id n6-v6mr29413650pla.325.1537282957451; Tue, 18 Sep 2018 08:02:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537282957; cv=none; d=google.com; s=arc-20160816; b=DCqYdmX2Fb8ueS8IYehHOBor4Qz9XQHKg3WiM5mXGmo8Hr0+77saQPH0L2ucFhurSs G5NNvTDsC2XU7Q0mY2umW0cBQgIhJELrlqtLPH06j6nz2GU9lOL+fBrZo6fzUlqujbVe KMp5+s5u2uDh4xeD1L98uYmVyn+dpGkCZibQD3ydiD1fnT1i2/eVrdD9xt5f7eerISk3 FCFVueolhbybkA6UDwufzGPy6CnnALdQcapg+qkRnv3gqtnEw3DowmBkSR+S1q4oYQLb F9F0YEC3jxdszjkpllPNsA+fMNhWg39iSgjnIaie/2rdbWuSyKvt6T3HdaC53D+QMYPS M7gA== 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; bh=wJA9ikihbpyhNqj8hj8urX1m9YTDZF0dfbGJdD67z+Y=; b=mHSvPS+wM5zqC2xM7xDhVuABUHQNMP0/vXYfATH6PNKsfxuZTXuZj7xebzGeIGmnmQ mqraSjrYYXl/JuF2ab3etMbK+lS3g2hs6exMMYGByBi2vW1k7Y+ei+8QcQF8FAyrD6Hy GbZGDGk7PUaZrxqiy2fsIBiR4maQHGgBHN94CTHpZE5DM/74uNwAvDopbKQKokTyi5fO nrJ5bnndwFnsz0uFbZZ7CWJQ87I6GaACKP+EibxfWXbGaZ/mquRXc78q7cNdaIgoZWfa 8Nig1Viz2AT5L5u+0DkRVZyTDJF+ianiW2HfjdokhnhvHP1zs2nJcbUeIVkoF0jrD+7a p8Pg== 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 i28-v6si19481548pfi.105.2018.09.18.08.02.19; Tue, 18 Sep 2018 08:02:37 -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 S1730017AbeIRUcK (ORCPT + 99 others); Tue, 18 Sep 2018 16:32:10 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:48521 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728681AbeIRUcJ (ORCPT ); Tue, 18 Sep 2018 16:32:09 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 9925CC7A33BC; Tue, 18 Sep 2018 22:59:08 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.399.0; Tue, 18 Sep 2018 22:59:09 +0800 Message-ID: <5BA112BC.8080108@huawei.com> Date: Tue, 18 Sep 2018 22:59:08 +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: Greg KH 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 Hi, Greg Can you pick up the patch? Thanks, 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); > }