nyx: parted: correct gpt validation check

This fixes an issue when second sector has garbage data that would cause a spinloop.
This commit is contained in:
CTCaer authored and naga committed 2026-06-17 06:15:10 +02:00
1 parent 38c74c961b
commit 5cab679a07
1 file changed
+1 -1
@@ -1209,7 +1209,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++)
{