From 07f9043bcd64cdf3450c0bb8d9d2f38de3e3a7a7 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Mon, 18 May 2026 14:25:24 +0300 Subject: [PATCH] nyx: parted: correct gpt validation check This fixes an issue when second sector has garbage data that would cause a spinloop. --- nyx/nyx_gui/frontend/gui_tools_partition_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyx/nyx_gui/frontend/gui_tools_partition_manager.c b/nyx/nyx_gui/frontend/gui_tools_partition_manager.c index c9e2b2ff..47449a59 100644 --- a/nyx/nyx_gui/frontend/gui_tools_partition_manager.c +++ b/nyx/nyx_gui/frontend/gui_tools_partition_manager.c @@ -968,7 +968,7 @@ static u32 _get_available_l4t_partition() // Search for a suitable partition. u32 size_sct = 0; - if (!memcmp(&gpt->header.signature, "EFI PART", 8) || gpt->header.num_part_ents > 128) + if (!memcmp(&gpt->header.signature, "EFI PART", 8) && gpt->header.num_part_ents <= 128) { for (u32 i = 0; i < gpt->header.num_part_ents; i++) {