Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2528868imb; Mon, 4 Mar 2019 07:25:19 -0800 (PST) X-Google-Smtp-Source: APXvYqxPLQiDDn7PpdvLgRaTLg2T60SMurZeh0AFlAhZqutP/e1OjNvD3qPT3QLEawmfvldYl3bj X-Received: by 2002:a17:902:9307:: with SMTP id bc7mr20694063plb.234.1551713119129; Mon, 04 Mar 2019 07:25:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551713119; cv=none; d=google.com; s=arc-20160816; b=BIkypLu/EcJhdn/FiWqqkidGlC6EcMKUalD0xmeejlkLg+QEyFDYutwqt9EE7bb1x/ L3N+7PgdJt+2yiPnpXCQVOlVr8wk9i547QuahUoZyaJWzvLNGXhQtrLZe7WQkHJ7qghZ pbM7nilgaw0+SpNbsvZbQ/2qVUrUB89ZAs/oHGvLhJ4IN5Lsg9MYUhkHRexpFcGn4NK7 tfkWNVVED1fcOnsi8PuY2xr418vg4kWj+EPPyROgtQgJzdfPLq8cnRwi3x4h5a8K0ZQI iX6d3qA/GADFMk5pBlyOUyz9NnTe+3N9u2vJqRXD+gKFp6dFPKnlxFw8DW7/5qTuESwf LJDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5M7OwyO6HgUrUJtcdI80kaZEhRjVtvCmXtUf3SxvANc=; b=zuYbG47W2h9j9cyNNu90quReZyHG7lhFRUawqrVB0eHl/J3lR8DIxVE48CBkepMZm2 RDz9O0LWJm+tCstFxjX9WpNHbVziDq6UG7LC35BarJHxZjqcLGwCB/ipLwJm7gUCHP5s N8FnBP5I9D6wzz8VpvqewELvvi9PACES6N/eZ19bNXEE+Pc3XV8esNeINj4h9qQePFeW VQPQVB07Pl8yB9btQaI3HTP79m0nIEKVWmRJ/NQOZgKCtG/d0C5AioCVO1mS7OnZW2SA dQE+DjM/4E83+CgSHdbLfVRCeS1oOJcLCWj8ekZSH+IjSOMA3TaFBFwZUGl5yp2h5+/t zJbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fJ7xw8Jd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h189si5464797pge.152.2019.03.04.07.25.03; Mon, 04 Mar 2019 07:25:19 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=fJ7xw8Jd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727036AbfCDOss (ORCPT + 99 others); Mon, 4 Mar 2019 09:48:48 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44953 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbfCDOss (ORCPT ); Mon, 4 Mar 2019 09:48:48 -0500 Received: by mail-pf1-f196.google.com with SMTP id a3so3173145pff.11 for ; Mon, 04 Mar 2019 06:48:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5M7OwyO6HgUrUJtcdI80kaZEhRjVtvCmXtUf3SxvANc=; b=fJ7xw8JdMM4dAArAke476bB1uuQCPCkRpvrEuv694j/65AqpQw4dwu0rT0PLE8CMUq 8ZZdQa1JhYV/PFADTEKW8EQf740m7UiBQafFMPw0f+JWB6gkNQT1sRny56yLgtwfbyam BOXTPFokqTqcXuP1LyUJ3aB7CeOLkIh9sxSpzOQTkgls61EHY1hX56biugQNpS8QZSxd mKv1oHHQCqBB5tpWWqtGljY/YWIdAs6CEidAP37ohcKFD7YG14I6eQ4YCA53qJzIxWko 9MDgc2PyBF6FA1jwGT8IxR4EuM/jf6gZCESscyiP3T75KlE9ZaP4HRq+cF6o6IYWVkyo Zc8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5M7OwyO6HgUrUJtcdI80kaZEhRjVtvCmXtUf3SxvANc=; b=sLvAvhjGsX44DThUQBqSHYI5Pvm5nCR4MyK25Ifglib0+UZxrjzkHV6dSXATPncKpg DxTLAIxarm+fR6P4FRiqIrj5WbLdo7cId2AwKTPS6dMjH0EGXhsSuJLRGBQ/lwLESsSZ fAddb7VMccddlo8PvDNEYHf06vE/lGcDWo/AGpCJtHyE7eqzCecUZvF+IgX/5k4fzgNM hZSnm6qrzoiz+XdWFECltFv4DAA24rEQKvtm5mWKXzGls/C6T4xFrBUjJRl6YPADes/0 D1UELGNW4jNgZq3VZd94656WdtSGZQGFcKN9t+4D/UFJQxZ0+MmF1vURqLEL7LkyAVW3 FtYw== X-Gm-Message-State: APjAAAXO9F4ZqsPBdTP9VbOF3ZnaNmUT0HuqaiM64V+UQ1f+3/hOzgjM 96rKOQVh/9SeYZXdrLLybqRt X-Received: by 2002:a63:f07:: with SMTP id e7mr18909505pgl.173.1551710926837; Mon, 04 Mar 2019 06:48:46 -0800 (PST) Received: from Mani-XPS-13-9360 ([2409:4072:88c:f338:bc65:e0ee:7524:9950]) by smtp.gmail.com with ESMTPSA id 63sm10441906pfy.110.2019.03.04.06.48.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Mar 2019 06:48:46 -0800 (PST) Date: Mon, 4 Mar 2019 20:18:29 +0530 From: Manivannan Sadhasivam To: Linus Walleij Cc: Wen Yang , Andreas =?iso-8859-1?Q?F=E4rber?= , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Russell King , Linux ARM , "linux-kernel@vger.kernel.org" , Kukjin Kim , Krzysztof Kozlowski , linux-samsung-soc , Michal Simek , Dinh Nguyen , Heiko =?iso-8859-1?Q?St=FCbner?= , "open list:ARM/Rockchip SoC..." , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list , avifishman70@gmail.com, Tomer Maimon , Patrick Venture , Nancy Yuen , Brendan Higgins , OpenBMC Maillist , Xu Wei , Maxime Ripard , Chen-Yu Tsai , Catalin Marinas , Will Deacon , Simon Horman , Magnus Damm , Linux-Renesas , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , NXP Linux Team , wang.yi59@zte.com.cn Subject: Re: [PATCH 01/15] ARM: actions: fix a leaked reference by addingmissing of_node_put Message-ID: <20190304144829.GA5265@Mani-XPS-13-9360> References: <1551430616-42014-1-git-send-email-wen.yang99@zte.com.cn> <20190301155523.GA1915@Mani-XPS-13-9360> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, On Mon, Mar 04, 2019 at 01:29:33PM +0100, Linus Walleij wrote: > On Fri, Mar 1, 2019 at 4:55 PM Manivannan Sadhasivam > wrote: > > Hi Wen, > > > > On Fri, Mar 01, 2019 at 04:56:42PM +0800, Wen Yang wrote: > > > The call to of_get_next_child returns a node pointer with refcount > > > incremented thus it must be explicitly decremented after the last > > > usage. > > > > > > Detected by coccinelle with the following warnings: > > > ./arch/arm/mach-actions/platsmp.c:112:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 103, but without a corresponding object release within this function. > > > ./arch/arm/mach-actions/platsmp.c:124:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 115, but without a corresponding object release within this function. > > > ./arch/arm/mach-actions/platsmp.c:137:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 128, but without a corresponding object release within this function. > > > > > > > We have a floating patch for this: > > https://www.spinics.net/lists/arm-kernel/msg694544.html > > > > Andreas: Can you please take a second look at the patchset submitted by Linus > > Walleij and Russel for simplifying the Actions startup code? > > Andreas wrote a version of simplifying secondary startup in the > same spirit as Russell's patches, and it's merged and all > is fine I think. > Oops. I think I missed that! Can you please point me to that patch? And how it got merged? I did the PR for actions stuff this time and haven't included any mach-actions patches. Thanks, Mani > If this patch applied on top of the current upstream code I'd say > just forget about my patch and merge Wen's patch instead. > > Yours, > Linus Walleij