Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp27164img; Tue, 19 Mar 2019 13:41:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhaJrAyncNKdq2M7H/uFmUd6Hf2Z2dFJdrIX5BpxyvHb6b6NqAFj0HjAnhXw3c9Q464U1X X-Received: by 2002:a63:df4d:: with SMTP id h13mr3979576pgj.220.1553028069515; Tue, 19 Mar 2019 13:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553028069; cv=none; d=google.com; s=arc-20160816; b=Nowjcw0wTBJh+C4vrdlQrcZKV2q+GQPubXhki9jGMI+q1u4qaZ8JfeDv0pzMe8SFdT hnsMmHtkxM21hAqgsx0VDZPpoBZ4p3kjeF/DB9q0fPFYa6+Bs7Gx/NStIrMksbluO9qz tX9PuPpRTOcBRGrf9ssI1mPJyzXq8WrNPqS/t6qA7oApoNRl5o+sCERX5wB+PkN9rpWg 9d1YtMM0MdV483K0Jb0ccyktz024f0xKpvbg7rArIWWrtdJTPa4CKeGPuUiKBsiC6+tR 5ydgS1F95bJlD2Ndb5M72TyunLXxTxnSCheLSU9Qdlq9SX3iaizseOPXmPKjahRBHn8u MpcA== 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; bh=3SQjUGvbtviPeRdXVgSnXLx9Qu2xWq+9wjer0xhPxQc=; b=vX6B6DMzlstZ8TC4nzHzDO5net+JXGeuKC4zfTRC75y6OacOxWjql9S84psMxxp5zm 9LKFhVTGdcnxZbEhs1GaLlJ30mzIhklUoESmzIQ0en7vCnlAu+fW1u9MdqhTKfP4Ar1H RjzDIY9GIZ4We0fOlhtpl6jenRhLihNMmXQa7tiIoU3ceuEBArMYc7ODesHjbiltS/Rb aB5LlcD4SyiS8SRwDfRFV74t+7gttWcsc/fPEvk+0mQsVjYfZ/p4uSfr/+peVVnZALnx NydifxYuRnnDON13zBJxCmJybyJE1SPdtKomyNW7Cy77dJAozHLRRGakIWpq+Ziuzdsk Cx/Q== 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; dmarc=fail (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 f35si10322plh.152.2019.03.19.13.40.54; Tue, 19 Mar 2019 13:41:09 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727246AbfCSUj6 (ORCPT + 99 others); Tue, 19 Mar 2019 16:39:58 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44684 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726914AbfCSUj6 (ORCPT ); Tue, 19 Mar 2019 16:39:58 -0400 Received: by mail-wr1-f67.google.com with SMTP id w2so310651wrt.11; Tue, 19 Mar 2019 13:39:57 -0700 (PDT) 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=3SQjUGvbtviPeRdXVgSnXLx9Qu2xWq+9wjer0xhPxQc=; b=U5MiH1WHRvW2BPXSmbFyRMF/frJy7jQn8w/Bff0zURj9w9iWrSq9ghVezDQFmC0k/I MhmQ73qwzWJHMaugwWZVVHC8D0GAwoq+4VSsFzRk0DxAncWhcRgpvEQIi1CJt9jeMc9m NTWPs4OOsutJzHwUwIowx5WP1tnyEoaJ6pdMcESv1Rb7HRu0DXQog67d8gVcLc+48Rk9 LoyBUN+KNNtHmrXZJNXYzvT52HxK32CDyL3LvMfux7Siy4DbFv0iLRxv39uyWK3bERwo jIpL+2QXZKs72xYOShJCcuVXDGdQ94yHuW1H0fjnzP9h0K8Tr6KwYDqDyaAsD3Ifgx8+ qNcA== X-Gm-Message-State: APjAAAUpOYePneuDOMjy9hBkcYR3iSc6P/3tEtnfTCs1rvSaYJAbu9QS s1QZBkXb/4fDN43psin2/I0= X-Received: by 2002:a05:6000:10c9:: with SMTP id b9mr18247393wrx.281.1553027996454; Tue, 19 Mar 2019 13:39:56 -0700 (PDT) Received: from kozik-lap ([194.230.155.153]) by smtp.googlemail.com with ESMTPSA id z1sm12539323wrw.28.2019.03.19.13.39.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Mar 2019 13:39:55 -0700 (PDT) Date: Tue, 19 Mar 2019 21:39:46 +0100 From: Krzysztof Kozlowski To: Wen Yang Cc: linux-kernel@vger.kernel.org, wang.yi59@zte.com.cn, Russell King , Kukjin Kim , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: Re: [PATCH v2 03/15] ARM: exynos: fix a leaked reference by adding missing of_node_put Message-ID: <20190319203946.GB16150@kozik-lap> References: <1551785646-46173-1-git-send-email-wen.yang99@zte.com.cn> <1551785646-46173-3-git-send-email-wen.yang99@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1551785646-46173-3-git-send-email-wen.yang99@zte.com.cn> 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 On Tue, Mar 05, 2019 at 07:33:54PM +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-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. > > Signed-off-by: Wen Yang > Reviewed-by: Florian Fainelli > Cc: Russell King > Cc: Kukjin Kim > Cc: Krzysztof Kozlowski > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-samsung-soc@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- Thanks, applied, with adjustments in commit msg and removal of Florian's reviewed-by tag (I cannot find his email with review). Best regards, Krzysztof