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 4931726 commit 1c6f598Copy full SHA for 1c6f598
iop/fs/bdm/src/part_driver_mbr.c
@@ -97,7 +97,7 @@ int part_connect_mbr(struct block_device *bd)
97
{
98
// No more free partition slots.
99
printf("Can't mount partition, no more free partition slots!\n");
100
- continue;
+ return -1;
101
}
102
103
// Create the pseudo block device for the partition.
@@ -110,8 +110,6 @@ int part_connect_mbr(struct block_device *bd)
110
g_part_bd[partIndex].sectorOffset = bd->sectorOffset;
111
g_part_bd[partIndex].sectorCount = bd->sectorCount;
112
bdm_connect_bd(&g_part_bd[partIndex]);
113
- //TODO, mountCount should only increase on success of bdm_connect_bd
114
- mountCount++;
115
116
FreeSysMemory(pMbrBlock);
117
return 0;
0 commit comments