From f66bd0a0795b89a3596451dde8572b8c70b37d61 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Thu, 24 Apr 2014 17:12:45 -0700 Subject: [PATCH] mkbootimg: fix padding calculation for 2ndstage loader Change-Id: I8db844cbc52896e51886b725fb86fd1b0fa57899 Signed-off-by: Andrew Boie --- mkbootimg/mkbootimg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) 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;