Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp654859iog; Thu, 30 Jun 2022 07:46:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tCr+4R36m0UCr0QqG6HfOHBhlcWZPgvM8njVx2H548T19eycwrmAjv6DmpyUkv0HwxAhA/ X-Received: by 2002:a17:907:629c:b0:6e1:6ad:5dd8 with SMTP id nd28-20020a170907629c00b006e106ad5dd8mr9581413ejc.641.1656600399810; Thu, 30 Jun 2022 07:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656600399; cv=none; d=google.com; s=arc-20160816; b=zuvxCkhDcpvz3nMFpGY/eLoU70GOxbb6kUS02I1QK5FzNcX6tUDwLqcHDILj6itoos J7cpyaKlDnD3KWYTf/wQEmQAEwyuCswEmzgDLbxRwdrKbFtkEkj+aIlt7SJ7YATqciMu SBHll1A8Bojx5Q6tEpkpA4Rf+Ek2Is5adOBghcmXKji5r5t7+3Sy8XD76VyQWRF8QPXb XKgo3lbWXdr0DLqp09QOiZo2xJYcOqyFGzGkEwWnsGNFEjdDUdEP2Q9WVPZ9TLDk8Ab0 qI4Vtb1iUjzEuZumeWE085ABWCHEK/Q3OlEYH51pda1DCwMvWjEV4BpXCbosdkrNur5d e6bQ== 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=oN+aU7WdyO+t1VBPqunaVAxlHRNeFVaOBRGu0yebUbk=; b=Ds36TKp5VaTYQVwzedZwuaJIj/Dsx/GTQJp4haWqUdkdkTuBm5BrDlkC9KIuvCU4Nj 89qxPFmz0RHBhFk0jxW/dMHiEtVZiuBPxqG9hHxo8m+SqV6p0kchqmj/ji4apB3LtC/o dANrNzyhGrIdz8fOMSUrRYf4DpgMs6HcdzswBLg24H/Cq4ll6kKZqfHll2LoL8vLLI8G XfbA3Zl0kfDAbVvF6G2wxxqf6Mr2IOs4d4iujmXDZwhqrpPod3sX2kErMGlhNs9LDE79 2F4wDt0lRd1pTy1QA4yR9f4w7IwSmcuJvjoaNSCjqVO6nqOdsDD4x/wCvpbm1taz/34X Kq3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hQoqITNm; 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 s12-20020a1709064d8c00b006ff09d27800si21415676eju.536.2022.06.30.07.46.14; Thu, 30 Jun 2022 07:46:39 -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=hQoqITNm; 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 S236333AbiF3OBo (ORCPT + 99 others); Thu, 30 Jun 2022 10:01:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236700AbiF3N7Z (ORCPT ); Thu, 30 Jun 2022 09:59:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02BB15C9C4; Thu, 30 Jun 2022 06:52:14 -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 ams.source.kernel.org (Postfix) with ESMTPS id 8D422B82AEF; Thu, 30 Jun 2022 13:52:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D90AAC34115; Thu, 30 Jun 2022 13:52:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656597133; bh=l+0t1T7UVgnnl52KigGaMI+Ya57FIMlUgLltqt/jz/M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hQoqITNmXWRcI7y76nPksp1/9XUlT9NwxtbkOTx/dCOPEZ4xM568a6R/D+TS2NE9e 4H/jw6Fq/TLscxiMclqUu/Ism+zU2yjmOo7TDzgZr5/EMEtkBWo1cKCcLPz8Bj4aSQ pQiLIoYUXtwJ+JYjzDGVlIBm0XJ+fFxRmWtB6sJU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Arnd Bergmann Subject: [PATCH 4.19 38/49] ARM: Fix refcount leak in axxia_boot_secondary Date: Thu, 30 Jun 2022 15:46:51 +0200 Message-Id: <20220630133235.004333201@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220630133233.910803744@linuxfoundation.org> References: <20220630133233.910803744@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=-7.5 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: Miaoqian Lin commit 7c7ff68daa93d8c4cdea482da4f2429c0398fcde upstream. of_find_compatible_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. Fixes: 1d22924e1c4e ("ARM: Add platform support for LSI AXM55xx SoC") Signed-off-by: Miaoqian Lin Link: https://lore.kernel.org/r/20220601090548.47616-1-linmq006@gmail.com' Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-axxia/platsmp.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm/mach-axxia/platsmp.c +++ b/arch/arm/mach-axxia/platsmp.c @@ -42,6 +42,7 @@ static int axxia_boot_secondary(unsigned return -ENOENT; syscon = of_iomap(syscon_np, 0); + of_node_put(syscon_np); if (!syscon) return -ENOMEM;