12 lines
566 B
Diff
12 lines
566 B
Diff
--- kexec-tools-2.0.20/kexec/arch/arm/kexec-zImage-arm.c.orig 2020-12-10 11:15:37.241691824 +0100
|
|
+++ kexec-tools-2.0.20/kexec/arch/arm/kexec-zImage-arm.c 2020-12-10 11:15:45.637546243 +0100
|
|
@@ -569,7 +569,7 @@
|
|
tag = find_extension_tag(buf, len, ZIMAGE_TAG_KRNL_SIZE);
|
|
if (tag) {
|
|
uint32_t *p = (void *)buf + le32_to_cpu(tag->u.krnl_size.size_ptr);
|
|
- uint32_t edata_size = le32_to_cpu(get_unaligned(p));
|
|
+ uint32_t edata_size = le32_to_cpu(p);
|
|
uint32_t bss_size = le32_to_cpu(tag->u.krnl_size.bss_size);
|
|
uint32_t kernel_size = edata_size + bss_size;
|
|
|