diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index e7fd0b5b9234e64fb7d2e3b93289be83d7fd3d10..975dd0dbc25274096d131e7bdf2c7b6e03cc5f0c 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1766,7 +1766,7 @@ static int fill_thread_core_info(struct elf_thread_core_info *t, (!regset->active || regset->active(t->task, regset) > 0)) { int ret; size_t size = regset_size(t->task, regset); - void *data = kmalloc(size, GFP_KERNEL); + void *data = kzalloc(size, GFP_KERNEL); if (unlikely(!data)) return 0; ret = regset->get(t->task, regset,