Index: firmware/lib/vboot_kernel.c |
diff --git a/firmware/lib/vboot_kernel.c b/firmware/lib/vboot_kernel.c |
index c3b3423eebc23f1bfa70f5cd8cd329a4f74e7181..d26ef6ff0d2de7c912ff40d9934ebfa56e41b680 100644 |
--- a/firmware/lib/vboot_kernel.c |
+++ b/firmware/lib/vboot_kernel.c |
@@ -322,7 +322,7 @@ int LoadKernel(LoadKernelParams* params) { |
/* TODO: GPT partitions start at 1, but cgptlib starts them at 0. |
* Adjust here, until cgptlib is fixed. */ |
good_partition = gpt.current_kernel + 1; |
- params->partition_number = gpt.current_kernel; |
+ params->partition_number = gpt.current_kernel + 1; |
params->bootloader_address = preamble->bootloader_address; |
params->bootloader_size = preamble->bootloader_size; |
/* If we're in developer or recovery mode, there's no rollback |