From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20B84CA9EB9 for ; Wed, 23 Oct 2019 20:14:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D124F20650 for ; Wed, 23 Oct 2019 20:14:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="R5x8mdsX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D124F20650 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eevHszKUidzde1uWyXXhiaVokF492cSu01lHFS5yp3A=; b=R5x8mdsXYLbVin cLXcg3T8+8Ekio2MUnjX10LPY48/LbhLwva93kPn72LnrN1s5AOhOVU3JXbmrx4BEZUYNyPh/k3zO Q0kqEPd+OnweVI6XZc4byPleVtnFLFc8EVV/z6p9Sutw19URq8gyoKYkzv5auDF/Qrf+VKR6FusaH ZqpXCd+OZ5xtPr1x1d9yCEKT/3GX7OOjRbnTtBftdUcs5VpU9tcEzsnIElE6cc1bK1E9lqjKrmPxs UCAp8mQjHQtEc/EDnfsKI7viZBiiHJXq4L6pLxmuZAhrBUaKiJIWf0PK3lf8ms2sW+hjsptc3jm/I nCcvwifO2l+1iLTGchtw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNN1q-00087X-Rf; Wed, 23 Oct 2019 20:14:46 +0000 Received: from mail-ot1-f66.google.com ([209.85.210.66]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNN1n-00087C-Pv for linux-arm-kernel@lists.infradead.org; Wed, 23 Oct 2019 20:14:45 +0000 Received: by mail-ot1-f66.google.com with SMTP id 41so18559964oti.12 for ; Wed, 23 Oct 2019 13:14:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=yHCtWGntZMmI9Nauyb+KPzomFg4uDRjl1jF3iEvwjaM=; b=RPrdRxvbNn6vn0xI/0D/fNzr5c5vCrL28mqRb8EnOi3FVnto0dkDtzakRvboZe4X/q rTTkdYft3ZkQQNZxecA/GEvdTJ5a9w8wTEXkc+Ql44zm4t7im68WUTL+90Hd2Kw1yZX6 3uVsTHPxoAFKY9agiC0Od1Y3paj2ijsQkeBuD7o3fJl8RP8YHFlm0ZRxBSzawDkDj/Pd UbdNDWKqixh9AaJw6XoKCIOZXLvkBGsRaiE//Qpxo5I9JxhUxbW1pTUVbcM2vfzYN3pR BOfZyLO7Dcbx4DZLaS1geP6eAUVt+gjU7+Ohhht0QwD+V3otnD+rafN3zeMBOO49kALx 10Zw== X-Gm-Message-State: APjAAAUABlq0MPmDCdv72rxBZmnbPHC8PYGxOaGj9q4vdqszsOE1EA05 YdHHfKgKxT0B+V16CAaUMg== X-Google-Smtp-Source: APXvYqw1NRgPEgXyubbpFlPakz4U6gDoQjfqDh0u6EixhMw4HkgZOmWsMBDfY/9q/FOxoBgbY7o+sA== X-Received: by 2002:a05:6830:1f09:: with SMTP id u9mr9254960otg.310.1571861682686; Wed, 23 Oct 2019 13:14:42 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id t10sm5992688oib.49.2019.10.23.13.14.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 13:14:41 -0700 (PDT) Date: Wed, 23 Oct 2019 15:14:40 -0500 From: Rob Herring To: Chris Goldsworthy Subject: Re: [PATCH] of: reserved_mem: add missing of_node_put() for proper ref-counting Message-ID: <20191023201440.GA29860@bogus> References: <1571536644-13840-1-git-send-email-cgoldswo@codeaurora.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1571536644-13840-1-git-send-email-cgoldswo@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191023_131443_838473_7C0D0ECA X-CRM114-Status: GOOD ( 11.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, robh+dt@kernel.org, Chris Goldsworthy , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, 19 Oct 2019 18:57:24 -0700, Chris Goldsworthy wrote: > Commit d698a388146c ("of: reserved-memory: ignore disabled memory-region > nodes") added an early return in of_reserved_mem_device_init_by_idx(), but > didn't call of_node_put() on a device_node whose ref-count was incremented > in the call to of_parse_phandle() preceding the early exit. > > Fixes: d698a388146c ("of: reserved-memory: ignore disabled memory-region nodes") > Signed-off-by: Chris Goldsworthy > To: Rob Herring > Cc: devicetree@vger.kernel.org > Cc: stable@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: linux-arm-msm@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org > --- > drivers/of/of_reserved_mem.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > Applied, thanks. Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel