Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3322076imm; Sun, 14 Oct 2018 17:27:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV62t9U1vvTXC3FRdgqlqWT57zhKn3IHTNOkMDy158+T1xaUHt4Qtolb3WtRGSuxos2jITAQv X-Received: by 2002:a65:43cd:: with SMTP id n13-v6mr13879765pgp.185.1539563245039; Sun, 14 Oct 2018 17:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539563245; cv=none; d=google.com; s=arc-20160816; b=qVc2xsVuMaGt2ecNqioHsHR+ALZP/Fz/uN1dsCJPe1arFaglVLUacRJGMQiJ5ZgIFj Wh7XRP8TG3dgFhTO92vrwj8ofvSR6hFA/EveU2ljTpo+uoCYqK+X2FgkyR6Rjz2+wYL5 kjZGifV5UcaxqOoMP4G7z/tnbyrwR0z9ERFLpNLEeDbDFUdWoa65cyEmZWxNL+27zsPd HU/Ne6biAkhSAy+WiSWW0Ses0C9OvZDUn4uvFZ2D/clwKO7RZtWNQhGaY92HIr7FgiO6 A+bPaZpAhGWyBdKKdiDYnlnFG/CHl8T6tu4qtEOzoml7QfIIcHW5SDj8fLa+1Z+deor8 INLg== 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=2V0SSjUhWRPC5W4OdqGfdKbaaGUGCT0NLhr5UzIi3kQ=; b=vsjLteSFJV127xAfUneCvrZuyNLcM6D29e0i+E4r1jTdjbbdFLwMC5KPKgaOFDHMra EdCbg4vmwsVekKTBWnRwlCgM9c4rglH4RzMovHJ3Yls8gO+6igIE/McpH1VAkBlWeAGi 96NN6g2rvQDhWEj50eM5v+GyIFcZ/2RVJLUR72+nguLl6sBoacosrT+C5UmTJFOY9wi6 HwmRj2eEXlcXMdpzTM6xrsGELCb48VuvER1j6o05uhfu3YbQpMlEY53ARH7/inQM8FyR kofhq5bGYkGeyiqFvxlySZ1s1SMNBTLpnYo9AUBBt0QYKAr8fSSTIFmdcDVvz9PBRBm5 xHGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wnr+8LIC; 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 34-v6si9255448pgm.544.2018.10.14.17.26.55; Sun, 14 Oct 2018 17:27:25 -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=Wnr+8LIC; 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 S1726631AbeJOIIx (ORCPT + 99 others); Mon, 15 Oct 2018 04:08:53 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37904 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726541AbeJOIIx (ORCPT ); Mon, 15 Oct 2018 04:08:53 -0400 Received: by mail-pg1-f195.google.com with SMTP id f8-v6so8295530pgq.5; Sun, 14 Oct 2018 17:26:05 -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=2V0SSjUhWRPC5W4OdqGfdKbaaGUGCT0NLhr5UzIi3kQ=; b=Wnr+8LIC1PVd+cR+XFwtzb94AQJUTHPMc8z1qC2M9v2nyrBF3I8nvB/v5WeMstwlbi bT9o5Nj1pzNAlrctIxXg/qgHTW6nmUP91nwKfhb89hBFcFRV/kR6VkFbEqu84RE/Qb+f Z3wMG8+CNokXVeDAKI6DkMkgHNdShb8wUimvnKxigjyyHKG3OFb52pGyA+VWh4Iux2gB 8sy9WQ7YbxYCOwNWNN27/zXeGVZw99HSBA2mp5jyxNn/LJB0uPAA24+zh7w1jLsGpXSB QKsWwpBdnYMzoEomC5a8IBDfq/kdYB321XO9DRY/n/8YfolwKAw8SC4SFn2R8iwyLGo5 PSXw== 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=2V0SSjUhWRPC5W4OdqGfdKbaaGUGCT0NLhr5UzIi3kQ=; b=CAsOQQiG3f3zSUMp35xC8wSiXukTWokjm5CN8gBo3TVvec11FXEQCs9pCkFpN2DlSv jaU6ZqM1+VNE00SDnNzyUj69auzIcTALe0591d6NZZ6SDwKb1a6yt+zT5KItd2KjPd08 X7vzhWW33czVh4Xwpje4iRFgVj3pLVqgRi+y4zxLRuLNkwyfoMs7EGn9kHJ9fG+XNTIR GTcXRTUu3Alyqe8yLrIDtjkfHsW2fzPsbNABIqd5v5YXF6PRUTDxxdHwSq+Bi1xIHgYk taaGZtW6R3rpFiVHCsun5Hd/MoOISCDvxZNZGAIosHIRCwM3x7ERGFPhIoK+KrpAV4Eq ldSg== X-Gm-Message-State: ABuFfogvBoc9eaY6ZyeTlq5YxPx+DDUpsGmF6p2h+2qstAnAx3xjkqtj 4gq054iKkeNO6TlDKqh9MGM5pBSW X-Received: by 2002:a62:7501:: with SMTP id q1-v6mr15164034pfc.225.1539563164629; Sun, 14 Oct 2018 17:26:04 -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 j14-v6sm11387110pgh.52.2018.10.14.17.26.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Oct 2018 17:26:04 -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 v3 04/18] powerpc/pseries: add of_node_put() in dlpar_detach_node() Date: Sun, 14 Oct 2018 17:24:16 -0700 Message-Id: <1539563070-12969-5-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1539563070-12969-1-git-send-email-frowand.list@gmail.com> References: <1539563070-12969-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 --- 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