gpt: add check for LBA 0

This commit is contained in:
Michael Shaw 2023-10-18 15:37:55 -04:00
commit 65795f55f4

View file

@ -55,7 +55,10 @@ void block_gpt_init(struct block_device *dev)
used_count++;
if(entry->lba_first > dev->block_count)
if (entry->lba_first == 0)
continue;
if (entry->lba_first > dev->block_count)
continue;
/* Name and register the partition */