summaryrefslogtreecommitdiff
path: root/kexec/arch/i386/kexec-beoboot-x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/arch/i386/kexec-beoboot-x86.c')
-rw-r--r--kexec/arch/i386/kexec-beoboot-x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/i386/kexec-beoboot-x86.c b/kexec/arch/i386/kexec-beoboot-x86.c
index dd7f098..27c5a2c 100644
--- a/kexec/arch/i386/kexec-beoboot-x86.c
+++ b/kexec/arch/i386/kexec-beoboot-x86.c
@@ -43,7 +43,7 @@ int beoboot_probe(const char *buf, off_t len)
struct beoboot_header bb_header;
const char *cmdline, *kernel;
int result;
- if (len < sizeof(bb_header)) {
+ if ((uintmax_t)len < (uintmax_t)sizeof(bb_header)) {
return -1;
}
memcpy(&bb_header, buf, sizeof(bb_header));