Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp189977imm; Thu, 4 Oct 2018 21:17:29 -0700 (PDT) X-Google-Smtp-Source: ACcGV62rdM1JXwq9wcb/N8HuW+YJ8sHSR0lz76o1JueSssFtaFr56pItpPaCHEj5WXC/8h6GrV75 X-Received: by 2002:a17:902:7482:: with SMTP id h2-v6mr9856971pll.228.1538713049283; Thu, 04 Oct 2018 21:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538713049; cv=none; d=google.com; s=arc-20160816; b=iArxvO7GVhZydsVw0CnI8U7bBskFfD3WVDbL8HGvBpfScXE41vkiitAc1nPINJesYl 69AKfKz2lJ0w/h0pyTVGCW0non4szZ8YSL62HUSN37BFdf2yz7q385/Yd06MkeaPpqYq CwB9Dfm+jOzRPXcXHLJ1Q2VrNYf64WERLMVWXcfMU6iJYW5jZwQcC5YgUfsBvZ83UYOL htb8ttqJnFxbLz4G1P44cZKMAWcAgWPSHACmtftirw0ktMJjO7CJNl/W4xoYIJegPi0q KLIVU08qRcejStM5RwJQCA3wVccTtPrvC8yaqiw7ilCJv+RVt2ror9B26we+uyFJ2jwu 4hUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=CCjwtqQtCAOwIXfabE6A59py+g67jCSp+upDI4OtmXg=; b=ppUgkbouVP6W4FrXmlobR9Q/Z7OTJ+KZl4UL4yT+uSm9KfFC8JTlYGJ7NYtBQgMxm7 uX9YnRnoHuk443EraBASTLR8Em0xDqnVcIliIe6oH3P4raU2zqWTM83sdJrV36n66DQd HapeI5otJgixOQINdL8KpDkddKS4/vpAvM7/Hp9uEI508wOcYIrPx/eSkgOigRQzmfBD 1PX7/fnRqicifpk69VHcLcD/ukC2e1/KbqPUMyt2dkJ4rpULn7F9ul/BEJu/MVVXizti HqL6SuHykzy3Fwvad/NXqrsuy1GnoPt6dS0Hltz0vFzVh+NJ6H55qLaT7QfTt/e5nsjq lSLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="aB/pc7f8"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9-v6si6971255pgk.594.2018.10.04.21.17.14; Thu, 04 Oct 2018 21:17:29 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="aB/pc7f8"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727722AbeJELLJ (ORCPT + 99 others); Fri, 5 Oct 2018 07:11:09 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:36259 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727599AbeJELLI (ORCPT ); Fri, 5 Oct 2018 07:11:08 -0400 Received: by mail-pg1-f193.google.com with SMTP id f18-v6so4143846pgv.3; Thu, 04 Oct 2018 21:14:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CCjwtqQtCAOwIXfabE6A59py+g67jCSp+upDI4OtmXg=; b=aB/pc7f8FxZc7uvWjU1rnHCfgnfN0z8C3vWsTvXR9xDr0ZaXu3l+aKzPSrD4J/PtBZ g6Nuvdx+FJHvQzlFn43EqB/Z0MzHmEKcv1sd7dlaF3rQKM0RC8DzbbXZ7AYmPTj0YgP7 JaNzyAfaTGpL3cArYhv5Hh70vUMvjcEmFJ84jyhunUzqBjEFYxl6x84NDxj7okW3QMqC YeTjxPW8riexKDFWU3ZxE+A+p0Xfw+CoXkCmw+TbQsh7MqEXC4l5jCGSIC+Ldz5whgSA Yt2TKSKwgjN0TIYIlZPyDhu4d4r4EkSPrEFm8W/G3FlffIMGXsztEQkdK2uW60nMD21l HzeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CCjwtqQtCAOwIXfabE6A59py+g67jCSp+upDI4OtmXg=; b=pf0K7/0B4FRTkRjJbey/XkZeO63U6OYcr31EvAd0kL1iEU+DpC6N2MUeby8MglynDd 9BvVky8F7rmonMVh54lfYtGFiI2/+2jLnd1/WrEnH8Y59y0TX4meNqpVD4hvHvXmwfCr AEhA/aT5JPH/a4H8P456MC6ca1pYdfIFRIOBgH7HMC93nRlD5kwbT8UfgaZ0xp0Uzr9o v9NyLaAhgAGi3gwUqZWjDWhkniADfQZcyKcId7zjDD14EkxBmEDHfAW3CE+oH+REiW3s zxP1bYPdzEELCqF9z41U1+lhhDqVdQylhoVNdXqXImeHXAKghTYKfdsPBXYGCK97Xh8T cJtg== X-Gm-Message-State: ABuFfogQaIgJobBafBEuYgMe++uQONxZkOv288fW7DBwc5kz6y0TVCN6 8bOZG7+LR2+/fD2QEj4pZGxUpdNJ X-Received: by 2002:a63:6203:: with SMTP id w3-v6mr8425138pgb.53.1538712857052; Thu, 04 Oct 2018 21:14:17 -0700 (PDT) Received: from localhost.localdomain (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id n63-v6sm277975pfn.9.2018.10.04.21.14.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Oct 2018 21:14:16 -0700 (PDT) From: frowand.list@gmail.com To: Rob Herring , Pantelis Antoniou , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Alan Tull , Moritz Fischer Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-fpga@vger.kernel.org Subject: [PATCH 04/16] powerpc/pseries: add of_node_put() in dlpar_detach_node() Date: Thu, 4 Oct 2018 21:12:35 -0700 Message-Id: <1538712767-30394-5-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538712767-30394-1-git-send-email-frowand.list@gmail.com> References: <1538712767-30394-1-git-send-email-frowand.list@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Rowand "of: overlay: add missing of_node_get() in __of_attach_node_sysfs" added a missing of_node_get() to __of_attach_node_sysfs(). This results in a refcount imbalance for nodes attached with dlpar_attach_node(). The calling sequence from dlpar_attach_node() to __of_attach_node_sysfs() is: dlpar_attach_node() of_attach_node() __of_attach_node_sysfs() Signed-off-by: Frank Rowand --- ***** UNTESTED. I need people with the affected PowerPC systems ***** (systems that dynamically allocate and deallocate ***** devicetree nodes) to test this patch. arch/powerpc/platforms/pseries/dlpar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c index a0b20c03f078..e3010b14aea5 100644 --- a/arch/powerpc/platforms/pseries/dlpar.c +++ b/arch/powerpc/platforms/pseries/dlpar.c @@ -272,6 +272,8 @@ int dlpar_detach_node(struct device_node *dn) if (rc) return rc; + of_node_put(dn); + return 0; } -- Frank Rowand