Merge "mkbootimg: fix padding calculation for 2ndstage loader"

This commit is contained in:
Colin Cross 2014-05-03 18:39:15 +00:00 committed by Gerrit Code Review
commit 8ec42bb203

View file

@ -263,7 +263,7 @@ int main(int argc, char **argv)
if(second_data) {
if(write(fd, second_data, hdr.second_size) != hdr.second_size) goto fail;
if(write_padding(fd, pagesize, hdr.ramdisk_size)) goto fail;
if(write_padding(fd, pagesize, hdr.second_size)) goto fail;
}
return 0;