Skip to content

Commit

Permalink
mkbootimg: fix padding calculation for 2ndstage loader
Browse files Browse the repository at this point in the history
Change-Id: I8db844cbc52896e51886b725fb86fd1b0fa57899
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information
Andrew Boie authored and osm0sis committed Jun 7, 2014
1 parent 8acb0cb commit e68e146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkbootimg.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,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;
}

if(dt_data) {
Expand Down

0 comments on commit e68e146

Please sign in to comment.