Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp445202iog; Mon, 13 Jun 2022 06:08:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygiPq33HmUetA+DjWcJOHgdB1kTtKFmteQQ7EdUXrV69Z6wD0OqvEW6gnOlRIZXYYqSNHh X-Received: by 2002:a17:90b:1b05:b0:1e2:a053:2fad with SMTP id nu5-20020a17090b1b0500b001e2a0532fadmr15806209pjb.209.1655125683988; Mon, 13 Jun 2022 06:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125683; cv=none; d=google.com; s=arc-20160816; b=smq0awb5HXlPmfwccZL6i2nxBuDFdl4HrJOaxSik/T7S/F0xR5COdwQ5959vqZUhxz QWuWbjCxmahhz0uuPOp4oncqAisrEkMK7inE3YnWZStWjHEuscT09wPvNfoJaaxsTYEI moV/AWka6h5Kx0hpEwcSoXaZrfzbdUcYB/PQrCa779xbEvo3wnqF7O0gqFK9kwj5ulR8 rloR6Erag87Dv3B9BVWF3Z5An7/BVGnzI+mwLoumcvFl5MQ3NS18LhObxP47Jhtnl5L2 BeSAndJNeU37GTHCoOBeKe2T5b0Qnz9rTbERLpEeS4ekW7wmoHOBFf2+oWI9axuMFlpC bmPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lLC16CtSQM6oDsRvWOUa33YZiMdUcnpkwzfTjTfOao8=; b=ofS5TMlokB+tldbHHon9uzBDsHATE52XrMRTrMMYXFdn7tMBF4PHyk9h+RQXxadcN0 bqN4e3OfVeI/7I/LQb8TjvD3moI+ZZhmELP+Sn5WkjbGu7UZvEaaqtglbwhxNU2brmpK cg6KiqeqHGmX4cGv5WCztGkbiX5e0BS6465zl5OzjnAy7QMskJG9x7C5c4Oaf7p9XWUh sPGorBnmOGpXC5N+dYLNCrDrbPKHwz4zNORFPFp2s7VpXYSZDWCUvrJzKoqb9wVkPl/i ANABZy/JKJ2hoeOrr55Zrfyf+hZjRefWi9jxx+/9O6ikfIWxHAp3IMmA/AWRQvxTjSDP v2SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Xmq/nhtT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020a170902740400b001677fa2026asi8562718pll.609.2022.06.13.06.07.49; Mon, 13 Jun 2022 06:08:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Xmq/nhtT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351686AbiFMLHg (ORCPT + 99 others); Mon, 13 Jun 2022 07:07:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350090AbiFMK7g (ORCPT ); Mon, 13 Jun 2022 06:59:36 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B53CC3120C; Mon, 13 Jun 2022 03:33:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 3F4ABCE0EEB; Mon, 13 Jun 2022 10:32:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12697C34114; Mon, 13 Jun 2022 10:32:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655116370; bh=uue5EE1JeN8GGNUFiqBSIhubZNl+E5Jqm/EiHbqvVJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xmq/nhtTY9lenDyasPA5E8awsNHBrFk/ft8nAUPnxDuQnUm0v1oC+TncmRI1WLmfa 2Ur+o4hPlWbBqNvhDzT0pqObiDNYi2HVUZeFhrM2rvoozip0SZaw8UXxOB3rMpnjBc o+gIROQATmPaSBWWdXVeCQK4GQFlTOQbPlyUtcvw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peng Wu , Linus Walleij , Arnd Bergmann , Sasha Levin Subject: [PATCH 5.4 070/411] ARM: versatile: Add missing of_node_put in dcscb_init Date: Mon, 13 Jun 2022 12:05:43 +0200 Message-Id: <20220613094930.776135315@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Wu [ Upstream commit 23b44f9c649bbef10b45fa33080cd8b4166800ae ] The device_node pointer is returned by of_find_compatible_node with refcount incremented. We should use of_node_put() to avoid the refcount leak. Signed-off-by: Peng Wu Signed-off-by: Linus Walleij Link: https://lore.kernel.org/r/20220428230356.69418-1-linus.walleij@linaro.org' Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- arch/arm/mach-vexpress/dcscb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-vexpress/dcscb.c b/arch/arm/mach-vexpress/dcscb.c index 46a903c88c6a..f553cde614f9 100644 --- a/arch/arm/mach-vexpress/dcscb.c +++ b/arch/arm/mach-vexpress/dcscb.c @@ -143,6 +143,7 @@ static int __init dcscb_init(void) if (!node) return -ENODEV; dcscb_base = of_iomap(node, 0); + of_node_put(node); if (!dcscb_base) return -EADDRNOTAVAIL; cfg = readl_relaxed(dcscb_base + DCS_CFG_R); -- 2.35.1