am 8fb0caa7: Merge "config_mbr: Fix integer overflow"

* commit '8fb0caa73b947ec801a5ae975f46560fb813baed':
  config_mbr: Fix integer overflow
This commit is contained in:
Jean-Baptiste Queru 2012-08-08 14:04:09 -07:00 committed by Android Git Automerger
commit b2a32cb990
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ mk_ext_pentry(struct disk_info *dinfo, struct part_info *pinfo, uint32_t *lba,
/* we are going to write the ebr at the current LBA, and then bump the
* lba counter since that is where the logical data partition will start */
item->offset = (*lba) * dinfo->sect_size;
item->offset = ((loff_t)(*lba)) * dinfo->sect_size;
(*lba)++;
ebr = (struct pc_boot_record *) &item->data;