summaryrefslogtreecommitdiff
path: root/utility/load_kernel_test.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2010-07-22 12:23:47 -0700
committerBill Richardson <wfrichar@chromium.org>2010-07-22 12:23:47 -0700
commite272940ec513ec00c295aecdfb6e799c07261d90 (patch)
tree00846dec696b6170f2368815f9d9db0f7b552cb6 /utility/load_kernel_test.c
parentada3fa9ee606c07d7675e235506522fa332c1747 (diff)
downloadvboot-e272940ec513ec00c295aecdfb6e799c07261d90.tar.gz
Fix load_kernel_test, add check to LoadKernel to detect bad args.
load_kernel_test was failing because it wasn't setting params->kernel_buffer_size before calling LoadKernel(). This fixes that, plus adds some checks to LoadKernel so that it will notice bad params if it happens again. Review URL: http://codereview.chromium.org/3060004
Diffstat (limited to 'utility/load_kernel_test.c')
-rw-r--r--utility/load_kernel_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utility/load_kernel_test.c b/utility/load_kernel_test.c
index 72c3921c..c391c61c 100644
--- a/utility/load_kernel_test.c
+++ b/utility/load_kernel_test.c
@@ -117,6 +117,7 @@ int main(int argc, char* argv[]) {
fprintf(stderr, "Unable to allocate kernel buffer.\n");
return 1;
}
+ lkp.kernel_buffer_size = KERNEL_BUFFER_SIZE;
/* Need to skip the address check, since we're putting it somewhere on the
* heap instead of its actual target address in the firmware. */