Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2902918iog; Mon, 27 Jun 2022 05:26:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vedAoRBaQBG2iD2Er76ZoBy9nf8/uoXwyoEukvYSuZA5gZhGbhUPaOIBUuK22rUuXvgxYW X-Received: by 2002:a17:902:aa86:b0:168:f0ef:95f6 with SMTP id d6-20020a170902aa8600b00168f0ef95f6mr14278360plr.145.1656332776621; Mon, 27 Jun 2022 05:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656332776; cv=none; d=google.com; s=arc-20160816; b=g/pDcz72+zja6E7fTx03up1DYHszWOHrG1t7ff4N9zY3qGA5we0ZrVIVN+hNxyojex LKO9fYVFmJaaxg/doPVYbUQviBqDJJJ0Q6efTM2qXMqg2cz24nXz+ltNCypxsiojoeA2 olIVWEubtYKgAFLHDugLum+Zz6iXyguJHiWyu8z6XgQYLM8gMEcOGxqR40YPitOltBNI 9GO9tepNWCNwVm+p+L6f2pOFWs8LfzK677jWNSKntAxAV6mXpe4cpWwpomO3CSmoVJPs Vnk97vClr4k9BiniEajHAuhg+AGdpV6fWdiZLeebSmWjPc9moLPekKceAxz5vbVqOq5v mSiA== 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=H04cRUFJNeD4AUl+gtV5oS8QVGvP1/KcvQnN8dry8So=; b=kPZw3kKnPRd5ThKB6SvOyRAiz2t7yiOkkE21otnhaWhWjbcu1GFXBk9nMfF6gtnh+S PQzpBMQoU7EmRPflP9pZaAzwNHYbgyuo4dL0ttrJCyhHppUKBiYo0fPGPjVF1c6aj3a5 U7hBOEh5Tj0MP17JO9tNn2BhBg+Xgdwt9SsFL+olx75OvEypWHiIshcBuLGGOCfwhfQ+ E4EQyZYCpHijon4Y8GgKWeTMwWcCFuPtZFTJGyEkN1rM6+656+vAYYp7tphB0PZBXKgO f4UBMik5mpuuZw8Z2UMPwfrcQtXOz5BlFSSW7K6U1y9seQv5myN7DjAC/gx0n8FfWknc ruVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Mi6lM7Fx; 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 i1-20020a63bf41000000b0040ca1fee045si14163710pgo.224.2022.06.27.05.26.04; Mon, 27 Jun 2022 05:26:16 -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=Mi6lM7Fx; 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 S235320AbiF0L3G (ORCPT + 99 others); Mon, 27 Jun 2022 07:29:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235185AbiF0L2K (ORCPT ); Mon, 27 Jun 2022 07:28:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61E879FFA; Mon, 27 Jun 2022 04:27:18 -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 F32D4B81117; Mon, 27 Jun 2022 11:27:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55814C3411D; Mon, 27 Jun 2022 11:27:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329235; bh=ysNOEvu3zGd1TifXXdMtyPRCM21reTJXO7MAoKCElac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mi6lM7Fxq6tOPemc0O24h5TmdkhfNCfRJKMwjvbb0RJBgJrYhK6iixV61dtKdV1mi hGMdfyI/A6WKYbL/5UpawEg+xfQm39pqO43ii305aM4vO4/NVYYKgZHuXtowxEeYSg 3QDgtuKtFJDBD0ozuuNrnH2jG093Ze3YFQ1YoUV4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Arnd Bergmann Subject: [PATCH 5.10 096/102] ARM: Fix refcount leak in axxia_boot_secondary Date: Mon, 27 Jun 2022 13:21:47 +0200 Message-Id: <20220627111936.314856945@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111933.455024953@linuxfoundation.org> References: <20220627111933.455024953@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 @@ -39,6 +39,7 @@ static int axxia_boot_secondary(unsigned return -ENOENT; syscon = of_iomap(syscon_np, 0); + of_node_put(syscon_np); if (!syscon) return -ENOMEM;