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:
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user