Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3869236yba; Tue, 23 Apr 2019 10:56:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9LOxNgRvs7ysfQAiKCi/ZXe2hUE4ew0/DwV/HUtFJC8PwfRMW9bVm0gMUXc49OYqLjXJR X-Received: by 2002:a62:6504:: with SMTP id z4mr27973384pfb.202.1556042177925; Tue, 23 Apr 2019 10:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556042177; cv=none; d=google.com; s=arc-20160816; b=zTb+kJRmHyhsZi2lqVWg49F303UCFJ98bvsFxla5wp7ybhjO+RZGvMrk5xvZw3JxNo KZyAlSUu/p1n09BGXPXUmx6BDWh72EC8W59t4Zm0kbNoeEHk4QXv5WqlZAr/1EAdrQ1g iLzIiP/80hMXJUzHvu2OEk/k/VXE6Ty4GAjMSUzqBG7Mtp1UJxAUoK47HHstqP8JKFW6 pkN4AsrgZ7+E6RNdSu83IIyzy/OH+emhxgu4Xx0+wSL3cbyENGorflaxtTtQwdsA6I5b MQKeCtXKZzSEykQNHxLZ4J61WgTicDQIPWS1GIXGvCcrwufmMMF3nm+GOemy5o4TxW/0 12YQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jAnKBYRntLz9kmUg/f+m0D8QpdPDvSQvWPT2Gv+EwjU=; b=W6RG1wdBd/YALs4Em2VCrGVuR4fqvtKoe2as5yhEKFgBnAFBvDuZ23VzTfJzxN7RAT uLYllGdyGOrdshI/1SoZjqgArSdYeYE7QYCeg87CQFUXAgavamd2Qd1G/eZCzj722pDO RwW/W9s78vy0Wlnssz1aTXFBHykhCEGOhIx1Z2A0DvuM7rMhTIO3wPKZ36vcYto6qee2 /sIoBaRRj6JmO8j1cFdJwo1W+S0DfxH2SdRF4ZSq36ZScGuz35ddn3I91RnLU79Nncb+ H6X865DuCwrdXwCZJmk0vX7Z9K/nsc9JFGJPOwVvaDrkY1+Cnq7j+aaiexNhxHPfXFvF Mk7g== 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 j11si16184947plk.419.2019.04.23.10.56.03; Tue, 23 Apr 2019 10:56:17 -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 S1728536AbfDWRyh convert rfc822-to-8bit (ORCPT + 99 others); Tue, 23 Apr 2019 13:54:37 -0400 Received: from gloria.sntech.de ([185.11.138.130]:35482 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726655AbfDWRyg (ORCPT ); Tue, 23 Apr 2019 13:54:36 -0400 Received: from p57b772a1.dip0.t-ipconnect.de ([87.183.114.161] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hIzco-0003ub-LG; Tue, 23 Apr 2019 19:54:34 +0200 From: Heiko Stuebner To: Wen Yang Cc: linux-kernel@vger.kernel.org, wang.yi59@zte.com.cn, Russell King , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH 3/4] ARM: rockchip: fix a leaked reference by adding missing of_node_put Date: Tue, 23 Apr 2019 19:54:34 +0200 Message-ID: <2700593.YbihCcEB6N@phil> In-Reply-To: <1551785577-45896-3-git-send-email-wen.yang99@zte.com.cn> References: <1551785577-45896-1-git-send-email-wen.yang99@zte.com.cn> <1551785577-45896-3-git-send-email-wen.yang99@zte.com.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, 5. M?rz 2019, 12:32:56 CEST schrieb Wen Yang: > 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-rockchip/platsmp.c:250:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 241, but without a corresponding object release within this function. > ./arch/arm/mach-rockchip/platsmp.c:260:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 241, but without a corresponding object release within this function. > ./arch/arm/mach-rockchip/platsmp.c:263:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 241, but without a corresponding object release within this function. > > Signed-off-by: Wen Yang > Cc: Russell King > Cc: Heiko Stuebner > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-rockchip@lists.infradead.org > Cc: linux-kernel@vger.kernel.org applied for 5.2 after adapting the patch subject a little bit Thanks Heiko