Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3204850imb; Tue, 5 Mar 2019 03:41:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzVe8HzOQKCKwTYNNKZADe3ghCQxQXWB3E2B0F24r8DBXmNMyyJYyGCwlHvv9a0dP87QWVw X-Received: by 2002:a17:902:2963:: with SMTP id g90mr794912plb.182.1551786094974; Tue, 05 Mar 2019 03:41:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551786094; cv=none; d=google.com; s=arc-20160816; b=TlZBXt8LHeo5ntYkmB2i05AnsNtAKuhlTFw8Q0AIUpfmgCTbsnQbffbJpPpaXAXBgC VFno/Ieml4haPmxdAIJAZUNSP5iU7+pgwpPm5vGhIP4W0FIVaU7qYaqLVjPQ4+pIo+G6 IbhjhpsPsX5NWSI7+B+358V7eL2Q5iNH6vzwXzJ7Ag3Spi/xZnrsZXgLfUj3kLcnehv1 tt08qMQPzbYNonLi1LVujnVk+yuMZnGMdahK/P95BirNHqCZ6siCQOlzq3urY0/a2uM4 8ZWqHhLTrB0dg/qrU2EG8sI3Wr8NzPp5oKPZ6ueJdUslHlqCgcE6VTzq0oSC8iNxKOeK Zu3w== 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=YOwdA2z3Vb0zQOg8AcGlwNDhkJBrNWdFXlX7eiGTL6I=; b=weczcOaz3hjQW6yqpgkb/gGWxqiuOY93AZuTdm3zxueHCVxOgpLGUqRNNBUeXqiJZ1 e+jGmRpmARCPG54j+1O5OcoftAist+bofy65GWpcnBDwSRQ6vVHactXjYdJaDPZmm/oJ 1ArGKZpmEopbGpfP3nNOs21NqdAEluxGAZ0VkDf+/57OORKBa6M7sryoZ2iygD8Hvp6J iEfYL382tnueTn5PFsidSEfagtgRyqr2A827VGEr1mjWfbx3HfgNXW0DBmZpPIPvU1Rm Z94dWIRv7uM81JeQmg5+Ld0YGmwY2D4ZDT3Qa3efKBAuqTDF6TkFToILw5yqWd8bXz1Q WkQw== 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 g6si7652469pgk.478.2019.03.05.03.41.19; Tue, 05 Mar 2019 03:41:34 -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; 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 S1727636AbfCELjf (ORCPT + 99 others); Tue, 5 Mar 2019 06:39:35 -0500 Received: from foss.arm.com ([217.140.101.70]:47260 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727271AbfCELjf (ORCPT ); Tue, 5 Mar 2019 06:39:35 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C0CFDA78; Tue, 5 Mar 2019 03:39:34 -0800 (PST) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 67E3B3F71D; Tue, 5 Mar 2019 03:39:33 -0800 (PST) Date: Tue, 5 Mar 2019 11:39:30 +0000 From: Sudeep Holla To: Wen Yang Cc: linux-kernel@vger.kernel.org, wang.yi59@zte.com.cn, Liviu Dudau , Lorenzo Pieralisi , Russell King , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 12/15] ARM: vexpress: fix a leaked reference by adding missing of_node_put Message-ID: <20190305113930.GB2066@e107155-lin> References: <1551785646-46173-1-git-send-email-wen.yang99@zte.com.cn> <1551785646-46173-12-git-send-email-wen.yang99@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1551785646-46173-12-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:34:03PM +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-vexpress/dcscb.c:150:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 145, but without a corresponding object release within this function. > ./arch/arm/mach-vexpress/dcscb.c:160:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 145, but without a corresponding object release within this function. > ./arch/arm/mach-vexpress/dcscb.c:171:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 145, but without a corresponding object release within this function. > > Signed-off-by: Wen Yang > Reviewed-by: Florian Fainelli > Cc: Liviu Dudau > Cc: Sudeep Holla I already Acked assuming you have plans to take this as series. There's no cover letter mentioning your plans to merge this or note to individual platform maintainers. Please let us know. -- Regards, Sudeep