summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/cbfstool/cbfs-payload-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/cbfs-payload-linux.c b/util/cbfstool/cbfs-payload-linux.c
index afb0f3ac71..6b4bf27b85 100644
--- a/util/cbfstool/cbfs-payload-linux.c
+++ b/util/cbfstool/cbfs-payload-linux.c
@@ -252,7 +252,7 @@ int parse_bzImage_to_payload(const struct buffer *input,
}
unsigned long kernel_base = 0x100000;
- if ((hdr->protocol_version >= 0x200) && (!hdr->loadflags & 1)) {
+ if ((hdr->protocol_version < 0x200) || !(hdr->loadflags & 1)) {
kernel_base = 0x1000; /* zImage kernel */
}
/* kernel prefers an address, so listen */