From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 BC1A92F5337; Fri, 7 Aug 2026 15:19:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786115958; cv=none; b=GC/AmREjPwJruoMqqpyO4/glNG5ehor+sApY8vd6j1D8h3EyEKIZUjZ9Ezw/pu4wmr5IOyRpBm+qH+LuMK+lbKxEXSFEv9w4GOe2Ao/rnrGOhXUjNWgCzM+F5E7EGO5Sfx8xBEwNUvSwkXWeYx/iXbM3ObBlxU3R8UkZqN2gY/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786115958; c=relaxed/simple; bh=EW83CSDBSCPPFHLfd8BIvUbJ9WpCdDcHWR2oVlhFcbs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ctslTv8ZwbPxcG+swAXYHD56cxGGKsUdWabCYKiKc79xXMGgY2qq3iWJNwgNGnbqehi51Er0xBa7sbDQPZPRxrUu/tL+GxvBUBkpYv5/4eowiZkzpiPm2yvYM4p8z50IblOdalRv4PmpsdKlsTGrk2oXDS+6EJAoH0fKV1ba6FA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q5rP4Gh1; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Q5rP4Gh1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22B6B1F000E9; Fri, 7 Aug 2026 15:19:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786115957; bh=Ses/9faRWbKyQjizantUHxDfL4bQWoFpdiOx3WpXprE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Q5rP4Gh1cxZbYYF/8hSqaeujYe7hadSmzKDOpdCs8elfDRldu/8eTh1bD4+wOeUmn yFvekEJreoP3uf8JuAHjqCLZbYeFBdOR2wCLDJuVkD+dA4ySpSAkBjTWuFAWyh9XEJ S6Uu+99BXXXwrFKfJe7QeHmUkp3RV4/ZfuYXMk6A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thorsten Blum , "Ritesh Harjani (IBM)" , Madhavan Srinivasan , Sasha Levin Subject: [PATCH 6.6 060/261] powerpc/boot: Fix treeboot-akebono CPU node lookup check Date: Fri, 7 Aug 2026 16:36:57 +0200 Message-ID: <20260807143416.678745350@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260807143415.358597922@linuxfoundation.org> References: <20260807143415.358597922@linuxfoundation.org> User-Agent: quilt/0.69 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 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thorsten Blum [ Upstream commit b24fc8278b70a9d27ec801a427ab4de9b769d69a ] fdt_node_offset_by_prop_value() returns a negative error code on failure - fix the check accordingly. Fixes: 2a2c74b2efcb ("IBM Akebono: Add the Akebono platform") Signed-off-by: Thorsten Blum Reviewed-by: Ritesh Harjani (IBM) Signed-off-by: Madhavan Srinivasan Link: https://patch.msgid.link/20260702211554.56923-6-thorsten.blum@linux.dev Signed-off-by: Sasha Levin --- arch/powerpc/boot/treeboot-akebono.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/treeboot-akebono.c b/arch/powerpc/boot/treeboot-akebono.c index e3cc2599869cc..1b529037480fb 100644 --- a/arch/powerpc/boot/treeboot-akebono.c +++ b/arch/powerpc/boot/treeboot-akebono.c @@ -146,7 +146,7 @@ void platform_init(char *userdata) node = fdt_node_offset_by_prop_value(_dtb_start, -1, "device_type", "cpu", sizeof("cpu")); - if (!node) + if (node < 0) fatal("Cannot find cpu node\n"); timebase = fdt_getprop(_dtb_start, node, "timebase-frequency", &size); if (timebase && (size == 4)) -- 2.53.0