We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 361f700 commit 1dfedb5Copy full SHA for 1dfedb5
iop/fs/bdm/src/part_driver_mbr.c
@@ -18,7 +18,7 @@ int partitions_sanity_check_mbr(struct block_device *bd, master_boot_record* pMb
18
for (int i = 0; i < 4; i++)
19
{
20
21
- if (pMbrBlock->primary_partitions[i] != 0) {
+ if (pMbrBlock->primary_partitions[i].partition_type != 0) {
22
23
if((pMbrBlock->primary_partitions[i].first_lba == 0) || (pMbrBlock->primary_partitions[i].first_lba >= bd->sectorCount))
24
return 0; //invalid
0 commit comments