#10717: Addressing issues brought up by Axel and Gerasim
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
This commit is contained in:
parent
ba38276d19
commit
d71c5a1ebf
|
@ -69,10 +69,10 @@ KPartitioningSystem::Identify(KPartition *partition, void **cookie)
|
||||||
int fd = -1;
|
int fd = -1;
|
||||||
if (partition->Open(O_RDONLY, &fd) != B_OK)
|
if (partition->Open(O_RDONLY, &fd) != B_OK)
|
||||||
return -1;
|
return -1;
|
||||||
|
if (partition->BlockSize() == 0) {
|
||||||
// if BlockSize is 0, identify_partition will cause a KDL
|
close(fd);
|
||||||
if (partition->BlockSize() == 0)
|
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
float result = fModule->identify_partition(fd, partition->PartitionData(),
|
float result = fModule->identify_partition(fd, partition->PartitionData(),
|
||||||
cookie);
|
cookie);
|
||||||
|
|
Loading…
Reference in New Issue