From patchwork Fri Apr 19 14:35:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 10908971 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 56EFD922 for ; Fri, 19 Apr 2019 14:41:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44A5928DA5 for ; Fri, 19 Apr 2019 14:41:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3826428DA7; Fri, 19 Apr 2019 14:41:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E42EE28DA5 for ; Fri, 19 Apr 2019 14:41:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=TnbkiX5PtwAqdV1ZZN7Q+29eqG3ZQ1jyN5S4HcTAkAs=; b=HEb NXTYo0pRid7+6Fk9NPGU2LMr8d3ERbHEsHoTJHExaGlqqfg+rxH4L7gHZS2crKrejqS0YSTqqj5Yr JDrPiCm/jQcTt3u4etTtqHlti8VfheouV+NHhZUPy61BHBg8R0BDYlOLvEb64EtdDJUJvGHl1eT2Q Txmr8S3OWdcSa3j4auVhzf8rlR783abbnVfqvbIXjEuzUDvC3XkRTue4R/oOyCJ9ptpplewp+J+et jOZM9diS4PxXZ6dXuBvkEXeIlMydVnIa48mFXM2jTIY23ZGgfOxTUcBtvn8V3C+xdNJuVJiP+R8H2 XFxzzM00nxbZr6lbGPK48mxPc/7MXWQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHUhl-0008OH-5Q; Fri, 19 Apr 2019 14:41:29 +0000 Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHUed-0006Mz-Te for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 14:38:35 +0000 Received: from penelope.horms.nl (unknown [62.153.215.140]) by kirsty.vergenet.net (Postfix) with ESMTPA id B751425BEE2; Sat, 20 Apr 2019 00:35:10 +1000 (AEST) Received: by penelope.horms.nl (Postfix, from userid 7100) id AED15E21AF6; Fri, 19 Apr 2019 16:35:08 +0200 (CEST) From: Simon Horman To: arm@kernel.org Subject: [GIT PULL] Renesas ARM Based SoC Updates for v5.2 Date: Fri, 19 Apr 2019 16:35:07 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_073816_536969_1D51E94D X-CRM114-Status: GOOD ( 10.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Kevin Hilman , Magnus Damm , linux-renesas-soc@vger.kernel.org, Olof Johansson , Simon Horman , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Olof, Hi Kevin, Hi Arnd, Please consider these Renesas ARM based SoC updates for v5.2. The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b: Linux 5.1-rc1 (2019-03-17 14:22:26 -0700) are available in the git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-arm-soc-for-v5.2 for you to fetch changes up to 115bbc30c6d2d7c8eddf87f88c1b7033522d47d2: ARM: shmobile: fix a leaked reference by adding missing of_node_put (2019-03-18 10:32:36 +0100) ---------------------------------------------------------------- Renesas ARM Based SoC Updates for v5.2 * Power Management - Fix a leaked reference by adding missing of_node_put * R-Car M2-W (R8A77910) based Porter board - Enable regulator quirk ---------------------------------------------------------------- Marek Vasut (1): ARM: shmobile: porter: enable R-Car Gen2 regulator quirk Wen Yang (1): ARM: shmobile: fix a leaked reference by adding missing of_node_put arch/arm/mach-shmobile/pm-rcar-gen2.c | 1 + arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) From patchwork Fri Apr 19 14:35:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 10908975 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9159917E0 for ; Fri, 19 Apr 2019 14:41:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F35528DA5 for ; Fri, 19 Apr 2019 14:41:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73B4B28DA7; Fri, 19 Apr 2019 14:41:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 068C028DA5 for ; Fri, 19 Apr 2019 14:41:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=4pM22JBEhc95klmzv8BJBhh0F9dgw8dBFIb8lPYykgA=; b=XbS3foYbzLedb3VgzfNTk9VXBm o1nAiqbg2azCXOqJ3caCY6gDfH8HsV8JKAmUv3zrjWnDSQmhfqHupiv9ea+uj5RTs45vIDLth6NNy KunwAKn5UI+9dNa1lDouAcz5bi3kcX0Evwcwa7V/1tVKWG3sWRCCXjAcLOucg8hQEsAHJkNe3ZYSF BxBeGjbg3eQ0atbXpskDZZqSGmFA5n2jkJ/hI+TAFfgfqiau3rBvX9smcmVxUf0mm/GSenTJLrZ0y 4PhgZfCJ3iEf86iOwR1Djij6m6WiftLwWMSSu1nNGxyIZii7IlZiXVkkJa2PdzJUpRNDBT1uj/t+W CqyNF1XA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHUi5-0000OW-WE; Fri, 19 Apr 2019 14:41:50 +0000 Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHUfF-0006Mz-CL for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 14:38:56 +0000 Received: from penelope.horms.nl (unknown [62.153.215.140]) by kirsty.vergenet.net (Postfix) with ESMTPA id E4A9C25BEFD; Sat, 20 Apr 2019 00:35:11 +1000 (AEST) Received: by penelope.horms.nl (Postfix, from userid 7100) id D4E79E21AFA; Fri, 19 Apr 2019 16:35:09 +0200 (CEST) From: Simon Horman To: linux-renesas-soc@vger.kernel.org Subject: [PATCH 2/2] ARM: shmobile: fix a leaked reference by adding missing of_node_put Date: Fri, 19 Apr 2019 16:35:08 +0200 Message-Id: <115bbc30c6d2d7c8eddf87f88c1b7033522d47d2.1555683298.git.horms+renesas@verge.net.au> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_073853_746370_0C38AAAC X-CRM114-Status: UNSURE ( 9.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Simon Horman , Magnus Damm , Wen Yang , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: 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-shmobile/pm-rcar-gen2.c:77:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 66, but without a corresponding object release within this function. ./arch/arm/mach-shmobile/pm-rcar-gen2.c:85:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 66, but without a corresponding object release within this function. ./arch/arm/mach-shmobile/pm-rcar-gen2.c:90:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 66, but without a corresponding object release within this function. Signed-off-by: Wen Yang Reviewed-by: Florian Fainelli Reviewed-by: Geert Uytterhoeven Signed-off-by: Simon Horman --- arch/arm/mach-shmobile/pm-rcar-gen2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/pm-rcar-gen2.c b/arch/arm/mach-shmobile/pm-rcar-gen2.c index 8c2a20591524..e84599dd96f1 100644 --- a/arch/arm/mach-shmobile/pm-rcar-gen2.c +++ b/arch/arm/mach-shmobile/pm-rcar-gen2.c @@ -72,6 +72,7 @@ void __init rcar_gen2_pm_init(void) } error = of_address_to_resource(np, 0, &res); + of_node_put(np); if (error) { pr_err("Failed to get smp-sram address: %d\n", error); return;