Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2901876iog; Mon, 27 Jun 2022 05:25:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t9joaqBAQiN8rhzxL2I3J78cHdZTYwpz8jp5lpkjemqrKoSvNnHTgiTh8tCpFAsqQ5gF3b X-Received: by 2002:a17:90b:4d81:b0:1ed:50e2:8547 with SMTP id oj1-20020a17090b4d8100b001ed50e28547mr10982200pjb.169.1656332700239; Mon, 27 Jun 2022 05:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656332700; cv=none; d=google.com; s=arc-20160816; b=vhdPLvqmu0CNJJtVpwzzof/ICLyfUZTZ4Tr09CUcqkLEV5vRNzHFf1a0OaurOx9F/8 n1Yg0+iphrG9C9QuXVf3MdDW3LT87WVfwALnhQ3D62Shjpq4hqQNon5XFhvBqQZ0va1n wRfSQglg0/uTtflJqczegdgcpWHsRy6qJgt8LlC72u/bf/i453up6gZtD12rEv/MGkly +9DRPrZ9MeUF9p2PzBgjdWdMwldfRZw1thpIQs8l7kLnYb6Rv0kxq9xn3ghJmifq0olJ yeZznsyC/LztkMDcpzm0xa8cLAMo6jCY31lF3QYGPTOIWfHnWHsKzYw58UfxbLHuQ6Mp owvQ== 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=bl3FbPjqb4j0OkKBopulOAcuH9xI3lnbFfNE9yOKUD+cXpJjZ6Sqdlj9bboS0VodXc RdYzUzw5IZaJ+WJyNo4e280s8TAlr3Y9q5CvlHPE9OvzvUqs04Q1BJzy9plSPCiM93Ei XjxKZ8YgKne5W1E37N4t+roQwPQV+NrasBVQQMSjHfj8g1kcUYYSdILiTL7GJfECLrme gG9zh5tnaQaHsQ6VSTieQFvqqCfSeFNFKXyHdOmS/izCJkpnDHlRoo4ORLOVz2sPEte2 8HjGsaA0GvyD1b8aNzhtJYuLjleefNlOyDIPj6X9W+jiqwNh0GySmH0x2bgaxhZU0jMm xcLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VRvpeqnn; 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 o2-20020a170903210200b0016a162a95eesi12218529ple.147.2022.06.27.05.24.48; Mon, 27 Jun 2022 05:25:00 -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=VRvpeqnn; 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 S235951AbiF0Lev (ORCPT + 99 others); Mon, 27 Jun 2022 07:34:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236156AbiF0LdW (ORCPT ); Mon, 27 Jun 2022 07:33:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38D59BF74; Mon, 27 Jun 2022 04:30:26 -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 F022AB81117; Mon, 27 Jun 2022 11:30:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E0ADC3411D; Mon, 27 Jun 2022 11:30:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329423; bh=ysNOEvu3zGd1TifXXdMtyPRCM21reTJXO7MAoKCElac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VRvpeqnnQtA534pnBZPd/rUTbXBCbocaTQm/yWIeE1RWIjsWRbEYE9iHjN2MWvbbL 8X4BedeMFxqENHhl7YV5TNj1cKauWQE1m6o7hCiYsUAi8HUTxj7VFmkjc9b9AT1YMV uN5JAY9tf7xX1khsLq57L0D2uaqmEeHAAjwHGUM4= 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.4 55/60] ARM: Fix refcount leak in axxia_boot_secondary Date: Mon, 27 Jun 2022 13:22:06 +0200 Message-Id: <20220627111929.308416091@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111927.641837068@linuxfoundation.org> References: <20220627111927.641837068@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;