Skip to content

Commit 1dfedb5

Browse files
authored
bdm MBR fix
1 parent 361f700 commit 1dfedb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iop/fs/bdm/src/part_driver_mbr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int partitions_sanity_check_mbr(struct block_device *bd, master_boot_record* pMb
1818
for (int i = 0; i < 4; i++)
1919
{
2020

21-
if (pMbrBlock->primary_partitions[i] != 0) {
21+
if (pMbrBlock->primary_partitions[i].partition_type != 0) {
2222

2323
if((pMbrBlock->primary_partitions[i].first_lba == 0) || (pMbrBlock->primary_partitions[i].first_lba >= bd->sectorCount))
2424
return 0; //invalid

0 commit comments

Comments
 (0)