Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp321420imb; Fri, 1 Mar 2019 01:21:07 -0800 (PST) X-Google-Smtp-Source: APXvYqwJ2v7cJIdn/R7IDSPCOO9Smm3d2+1E56MSgZkWA/jvuqw7Ibzcq1Ig4lnClQ2Zi0uAqmK+ X-Received: by 2002:a17:902:e492:: with SMTP id cj18mr4440476plb.341.1551432067340; Fri, 01 Mar 2019 01:21:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551432067; cv=none; d=google.com; s=arc-20160816; b=vbxD2L81N267wAHJFMV3q5qnRTF/v9WsaLsEvyBTKruxh3fVPJ79WV7nChR425dP/0 DXxwsDYMk9+HGVkjv5IA8HgqDZQ59oZTuAD5vo8PoQWpUrcN/+T821Ta0tbYZjvEGPN/ KV2SjR4n8wX6xIn+GR4wUBtjNB1TPe7FAvAO+xbJpPIn1wwSRkLqx4geEJZuNWifTlhh OjRzAuD72gGN7Mnj31cmUaUoz49SSPnDYTNyrHjbmTcmz+a1BoyoPMp0BUIQDbfpRAwE YvophyweqcRqWAuZcsx17Kd3lpHSSQDuhGvNEDUqx9+UJEfIKOgM7ZmCYwm8JvGaLWxx oyFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=adRrWvZswv6/A0CZm9xhGl59CI2WDzORwkMwbCYtQlc=; b=kXA3ViqW8BhXuhbChIzVUD5XhTq50IIGchzWPPA7pG48z/r4WWxHVtkwCsCniL/pQ9 Gjq1b461z75ywPqF1NpxvlmgGiKe0nvyiZR7poiRsGJc53J4cwgGkdhYiSS+2Wh7paSr 95q7zD68M4HqeChxruLhyVZuGA35jbERtFhh4CDWlRLCB/HQrwwl7yDuKTp5rCRMJ7eK AEHcoJzYcUMaMVQhiqbAZGVlnwvO48Wh24Uwe4higBt8x9K0Pkr7ekmVKFtmMp2Zn+za ZBjHenPefayJEAnZ3ycGs7wKqtIrI57tPgKixEhXtJA0vY1aaZnlyBEEICwXtBQqNBpT jmbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BCl6n1mh; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si20264962pgh.278.2019.03.01.01.20.52; Fri, 01 Mar 2019 01:21:07 -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=@kernel.org header.s=default header.b=BCl6n1mh; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732532AbfCAJOf (ORCPT + 99 others); Fri, 1 Mar 2019 04:14:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:48912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726424AbfCAJOe (ORCPT ); Fri, 1 Mar 2019 04:14:34 -0500 Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC842218FC; Fri, 1 Mar 2019 09:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551431673; bh=adRrWvZswv6/A0CZm9xhGl59CI2WDzORwkMwbCYtQlc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BCl6n1mhiS0jcoDyT/08ZNvSQm5sLptP37zarhchbNnjvkwXifbJBkuYNiKHlnHog qRatBMZsA5uxOd8eg2MQiuKD5wDfsERQOzeKGre4+m/M8VxEJiam8z42FkNVLKBgbU Uby4zE8sASZJbpEhkYcoicuitwL0zOGXcWpW+PpY= Received: by mail-lj1-f175.google.com with SMTP id v16so19709885ljg.13; Fri, 01 Mar 2019 01:14:32 -0800 (PST) X-Gm-Message-State: APjAAAUehajj/grGWReaRlskYGYJkP9iyA5WWWn1xA0tCdAhK4CTy9xd InE8bAI9OfKQRIytJI5nNyGeAaHeMLFbg4EJjGk= X-Received: by 2002:a2e:88d1:: with SMTP id a17mr1970816ljk.169.1551431670964; Fri, 01 Mar 2019 01:14:30 -0800 (PST) MIME-Version: 1.0 References: <1551430616-42014-1-git-send-email-wen.yang99@zte.com.cn> <1551430616-42014-3-git-send-email-wen.yang99@zte.com.cn> In-Reply-To: <1551430616-42014-3-git-send-email-wen.yang99@zte.com.cn> From: Krzysztof Kozlowski Date: Fri, 1 Mar 2019 10:14:19 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 03/15] ARM: exynos: fix a leaked reference by addingmissing of_node_put To: Wen Yang Cc: liviu.dudau@arm.com, sudeep.holla@arm.com, lorenzo.pieralisi@arm.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kgene@kernel.org, "linux-samsung-soc@vger.kernel.org" , michal.simek@xilinx.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, dinguyen@kernel.org, heiko@sntech.de, linux-rockchip@lists.infradead.org, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linus.walleij@linaro.org, avifishman70@gmail.com, tmaimon77@gmail.com, venture@google.com, yuenn@google.com, brendanhiggins@google.com, openbmc@lists.ozlabs.org, xuwei5@hisilicon.com, maxime.ripard@bootlin.com, wens@csie.org, catalin.marinas@arm.com, will.deacon@arm.com, horms@verge.net.au, magnus.damm@gmail.com, linux-renesas-soc@vger.kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-imx@nxp.com, wang.yi59@zte.com.cn Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 1 Mar 2019 at 09:57, 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-exynos/firmware.c:201:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 193, but without a corresponding object release within this function. > ./arch/arm/mach-exynos/firmware.c:204:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 193, but without a corresponding object release within this function. > ./arch/arm/mach-exynos/suspend.c:642:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 634, but without a corresponding object release within this function. Thanks, looks good. I'll take it however after merge window. There are no dependencies between patches therefore you could limit the amount of people you CC. You put specific "Cc" fields in patch but you did not use them and sent it to 40 addresses. The CC in the patch has exactly this purpose - do not send everything to everyone... Best regards, Krzysztof