aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/boot/compressed/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/boot/compressed/misc.c')
-rw-r--r--arch/x86_64/boot/compressed/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/boot/compressed/misc.c b/arch/x86_64/boot/compressed/misc.c
index fee54dbf1749..fed1167159c3 100644
--- a/arch/x86_64/boot/compressed/misc.c
+++ b/arch/x86_64/boot/compressed/misc.c
@@ -358,7 +358,7 @@ asmlinkage void decompress_kernel(void *rmode, unsigned long heap,
358 insize = input_len; 358 insize = input_len;
359 inptr = 0; 359 inptr = 0;
360 360
361 if ((ulg)output & 0x1fffffUL) 361 if ((ulg)output & (__KERNEL_ALIGN - 1))
362 error("Destination address not 2M aligned"); 362 error("Destination address not 2M aligned");
363 if ((ulg)output >= 0xffffffffffUL) 363 if ((ulg)output >= 0xffffffffffUL)
364 error("Destination address too large"); 364 error("Destination address too large");