volume_id_set_label_raw(id, vs->type.fat.label, 11);
volume_id_set_label_string(id, vs->type.fat.label, 11);
}
- volume_id_set_uuid(id, vs->type.fat.serno, UUID_DOS);
+ volume_id_set_uuid(id, vs->type.fat.serno, 0, UUID_DOS);
goto found;
fat32:
/* set next cluster */
next = le32_to_cpu(*((uint32_t *) buf)) & 0x0fffffff;
- if (next == 0)
+ if (next < 2 || next >= 0x0ffffff0)
break;
}
if (maxloop == 0)
volume_id_set_label_raw(id, vs->type.fat32.label, 11);
volume_id_set_label_string(id, vs->type.fat32.label, 11);
}
- volume_id_set_uuid(id, vs->type.fat32.serno, UUID_DOS);
+ volume_id_set_uuid(id, vs->type.fat32.serno, 0, UUID_DOS);
found:
volume_id_set_usage(id, VOLUME_ID_FILESYSTEM);