aboutsummaryrefslogtreecommitdiffstats
path: root/fs/binfmt_elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r--fs/binfmt_elf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index c2eac2a50bd2..61c21e7dc95d 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -1465,12 +1465,11 @@ static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file)
1465 read_lock(&tasklist_lock); 1465 read_lock(&tasklist_lock);
1466 do_each_thread(g,p) 1466 do_each_thread(g,p)
1467 if (current->mm == p->mm && current != p) { 1467 if (current->mm == p->mm && current != p) {
1468 tmp = kmalloc(sizeof(*tmp), GFP_ATOMIC); 1468 tmp = kzalloc(sizeof(*tmp), GFP_ATOMIC);
1469 if (!tmp) { 1469 if (!tmp) {
1470 read_unlock(&tasklist_lock); 1470 read_unlock(&tasklist_lock);
1471 goto cleanup; 1471 goto cleanup;
1472 } 1472 }
1473 memset(tmp, 0, sizeof(*tmp));
1474 INIT_LIST_HEAD(&tmp->list); 1473 INIT_LIST_HEAD(&tmp->list);
1475 tmp->thread = p; 1474 tmp->thread = p;
1476 list_add(&tmp->list, &thread_list); 1475 list_add(&tmp->list, &thread_list);