Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1544015imm; Fri, 12 Oct 2018 21:57:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV61h3UMBFBuUJFXWEiCAEtKs+7AQ+gCS05rH2wqFmY1r70ckd5SP7pgieavcZQpuPtGKZMWL X-Received: by 2002:a65:5347:: with SMTP id w7-v6mr8309947pgr.17.1539406670809; Fri, 12 Oct 2018 21:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539406670; cv=none; d=google.com; s=arc-20160816; b=j1eihpuZvHzLOzGaKIivwr1QZjCzKSIxOX0YNhVUzO06nPuhrcQ+1EstCEVMnCNQ4V hFY4Ue5AYHhFrO3WNmdX8belsns7BG0iY/mtL2glXovYihe30is8S9OGq0UdwUjuO7j+ C6zBG6+fZE1lD+ZctdyecY21PNS6gF7WI6sR1JSsshmzh41UTGOtyUtRDDRyuDQAHgTG uiCzqUnEDSOspDNIm63vNRub+q1rnzmsPLgx6Irb1z0P33R8J6cxcLx1gLvV+eR9Qp51 gIVZglIu2qwKkod/NWlXInbvProLemr3ReW4JkZQsain+i30Q6xgIoS7s1GXAPjo2U+y Rv3w== 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=UIZN5LLi6uyXsSHdDhI1SilV5Izt/z063lLmCjELpdLMSzufDe55kpsxDGhf+ElRQv Zls/4T0G8vvaKtXHdDcpyDan0ueVLLMvv3vFcvzPZklyMIqwRuTVkGbcVwBLRrenCY3X cBwmBPp+8NMvtPVi/JYoqc9rTycZZqxLQph7cmwfwysBiHzdqkOI/fNtPdok09iZ8urD SXcFqgEqcq/BEYwxjX2y+7Meb5zja+iA6qyYDhISse0BmaRwhr4Afkn/M67LZ7jWxut3 roSodYEoA8XKTn0EKBvSIqtacKx+XYvHImyPInhNc6o6NPSkwZeuDUHYDJa/h7L9Oqoa D7FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XjLKBF08; 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 l33-v6si3348804pld.397.2018.10.12.21.57.36; Fri, 12 Oct 2018 21:57:50 -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=XjLKBF08; 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 S1726670AbeJMMaw (ORCPT + 99 others); Sat, 13 Oct 2018 08:30:52 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:46089 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726562AbeJMMau (ORCPT ); Sat, 13 Oct 2018 08:30:50 -0400 Received: by mail-pf1-f193.google.com with SMTP id r64-v6so7147172pfb.13; Fri, 12 Oct 2018 21:55:09 -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=XjLKBF08ZQ+dsEyY+1vcvgFDvIQUH+3J+mij+q0zb8rlPtPBVFuf5qpY1NOYkLMfWI LqJaauyLUA2EQ/lBipHWNE0gvwzV7tNahnPnfKggwln8idyWVA6EVc1MNMpOXBMduylD hbUgnmPJ3tMlT7Ez7ftzWY9/qtX+3Z8PEP+Wx6XfJEnvDQwMYWSHtLZezIJITXjbsgzr qxFUauNaVKokdPIeKVZxfVgmERQM91b3Al/4t14pd+5anf9hSVdzeG0KAt7gK3Br4dze MFzqaiAyDAcx9IFrwN8uYqjthUhxIim9HYDqu2myBuMCvzZsF6TY1FJsuVS7IATvdWvM KT4A== 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=MtP/UR9hxmoFEcK0z7zqLGJZ4HwaKeDK+4gcT34BefKAC3TLoJa4+Y6u4PG9poyPUH TzJDtptIkintvprrtRFZch61eQz2b+0FD7Z68T0ndRdNDa6JdzZzxznlM462c7maLzZx B4xpJAoXyW5CCgGkBPFdzIO5HBXS895eFNzDEr9wR4poamNT4f3LlTHRJShL+8UQB006 hQce+HB/Cqw5NZGnmNyKJWWzbl8looNsodVa7otBh7EKNUF8iSt3ys3J87D5ajknz+kW BxMQ3cFONciQ3eLh1kRnbZDyi+VAs8VpyiI+0KcwcxtTFIZ4OcTEKpX5GvMqWimbSM77 T4YQ== X-Gm-Message-State: ABuFfogcVKTIzwXjNSB988y+f8dY9+tsP9dWspBv7Z2uElFHHtOvnfhs G7YUyYaEgF9wQ1vR3HdRiFQ= X-Received: by 2002:a63:565d:: with SMTP id g29-v6mr7995901pgm.227.1539406509460; Fri, 12 Oct 2018 21:55:09 -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 h87-v6sm6959462pfj.78.2018.10.12.21.55.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Oct 2018 21:55:08 -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 v2 04/18] powerpc/pseries: add of_node_put() in dlpar_detach_node() Date: Fri, 12 Oct 2018 21:53:24 -0700 Message-Id: <1539406418-18162-5-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1539406418-18162-1-git-send-email-frowand.list@gmail.com> References: <1539406418-18162-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