diff options
Diffstat (limited to 'kexec/crashdump-elf.c')
-rw-r--r-- | kexec/crashdump-elf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kexec/crashdump-elf.c b/kexec/crashdump-elf.c index ec66548..2baa357 100644 --- a/kexec/crashdump-elf.c +++ b/kexec/crashdump-elf.c @@ -96,8 +96,7 @@ int FUNC(struct kexec_info *info, return -1; } - sz += align - 1; - sz &= ~(align - 1); + sz = _ALIGN(sz, align); bufp = xmalloc(sz); memset(bufp, 0, sz); |