From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 429D41E6339; Tue, 15 Oct 2024 11:42:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728992559; cv=none; b=c5oNVTy2haJ4j+yC2mudCaRLD+QWjJQzHCzNDTOJQ+9mtY564N5GGxFb9p2kUGWQF++97fTdF89kevgMfm2dL0L7mfSY2hasuMhdsqZTi81xfrwqb0iNDlLRsk3dRMrP6eP7agevVEsgKn16NMcbYrDWtQmLfgLImpeH8OuyEqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728992559; c=relaxed/simple; bh=dJff10gDj/J6Bu+0UjtY6zt7ml7Nc53TrvhxYIi9Sj8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ea+JwKExAS+1ZGN77jNdacD2aGeYKd92s1kxfKk4/7sC4Em6BT/aaokPK9+3HVYLwOO37CaUkgLgQ8XNSM9za93HRuoqSX8lG3jMjSeKmUyuaGFJhwZSh+gjXPtNOZ8uSCRhOilqV5h71s7zAqmj6kQlstecbzpKyvG09oSjXM0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gMQHRmGT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="gMQHRmGT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53CB2C4CEC6; Tue, 15 Oct 2024 11:42:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728992558; bh=dJff10gDj/J6Bu+0UjtY6zt7ml7Nc53TrvhxYIi9Sj8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gMQHRmGTpuFPLjcD8Jh5eWV3pTawseIHo6DXCCIvfpWhbIRWxVt+QqYOo1n71GdbR eOsyFaLOBurqHeZJj0uG7dXHoaBXrP5kel5TKYmw+kx3x8QcmV85ziP1lszyTMDZJr DsC0SHA3GQqKKRAwHzAfwW9H78kEjAtsboOSEimM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Krzysztof Kozlowski , Liviu Dudau , Linus Walleij , Sasha Levin Subject: [PATCH 5.15 144/691] ARM: versatile: fix OF node leak in CPUs prepare Date: Tue, 15 Oct 2024 13:21:32 +0200 Message-ID: <20241015112446.070841733@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241015112440.309539031@linuxfoundation.org> References: <20241015112440.309539031@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Krzysztof Kozlowski [ Upstream commit f2642d97f2105ed17b2ece0c597450f2ff95d704 ] Machine code is leaking OF node reference from of_find_matching_node() in realview_smp_prepare_cpus(). Fixes: 5420b4b15617 ("ARM: realview: add an DT SMP boot method") Signed-off-by: Krzysztof Kozlowski Acked-by: Liviu Dudau Link: https://lore.kernel.org/20240826054934.10724-1-krzysztof.kozlowski@linaro.org Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- arch/arm/mach-realview/platsmp-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-realview/platsmp-dt.c b/arch/arm/mach-realview/platsmp-dt.c index 5ae783767a5d3..083e6a6f75205 100644 --- a/arch/arm/mach-realview/platsmp-dt.c +++ b/arch/arm/mach-realview/platsmp-dt.c @@ -66,6 +66,7 @@ static void __init realview_smp_prepare_cpus(unsigned int max_cpus) return; } map = syscon_node_to_regmap(np); + of_node_put(np); if (IS_ERR(map)) { pr_err("PLATSMP: No syscon regmap\n"); return; -- 2.43.0