summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Boie2014-04-24 19:12:45 -0500
committerAndrew Boie2014-04-24 19:12:45 -0500
commitf66bd0a0795b89a3596451dde8572b8c70b37d61 (patch)
tree99eb26957f0c2deb2385e512bcdacffb9baf9142 /mkbootimg
parent72031ab8780ddbdfad84ea4a02ba7fe87566ee50 (diff)
downloadplatform-system-core-f66bd0a0795b89a3596451dde8572b8c70b37d61.tar.gz
platform-system-core-f66bd0a0795b89a3596451dde8572b8c70b37d61.tar.xz
platform-system-core-f66bd0a0795b89a3596451dde8572b8c70b37d61.zip
mkbootimg: fix padding calculation for 2ndstage loader
Change-Id: I8db844cbc52896e51886b725fb86fd1b0fa57899 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Diffstat (limited to 'mkbootimg')
-rw-r--r--mkbootimg/mkbootimg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkbootimg/mkbootimg.c b/mkbootimg/mkbootimg.c
index d598f0395..a7daccc21 100644
--- a/mkbootimg/mkbootimg.c
+++ b/mkbootimg/mkbootimg.c
@@ -263,7 +263,7 @@ int main(int argc, char **argv)
263 263
264 if(second_data) { 264 if(second_data) {
265 if(write(fd, second_data, hdr.second_size) != hdr.second_size) goto fail; 265 if(write(fd, second_data, hdr.second_size) != hdr.second_size) goto fail;
266 if(write_padding(fd, pagesize, hdr.ramdisk_size)) goto fail; 266 if(write_padding(fd, pagesize, hdr.second_size)) goto fail;
267 } 267 }
268 268
269 return 0; 269 return 0;