Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96992
b: refs/heads/master
c: 5f71955
h: refs/heads/master
v: v3
  • Loading branch information
WANG Cong authored and Al Viro committed May 16, 2008
1 parent bed64dd commit f17da0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eceea0b3df05ed262ae32e0c6340cc7a3626632d
refs/heads/master: 5f719558edf9c84bfbb1f7ad37e84c483282d09f
5 changes: 3 additions & 2 deletions trunk/fs/binfmt_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@ static int elf_core_dump(long signr, struct pt_regs *regs, struct file *file, un
/* alloc memory for large data structures: too large to be on stack */
elf = kmalloc(sizeof(*elf), GFP_KERNEL);
if (!elf)
goto cleanup;
goto out;

segs = current->mm->map_count;
#ifdef ELF_CORE_EXTRA_PHDRS
Expand Down Expand Up @@ -2034,8 +2034,9 @@ static int elf_core_dump(long signr, struct pt_regs *regs, struct file *file, un
set_fs(fs);

cleanup:
kfree(elf);
free_note_info(&info);
kfree(elf);
out:
return has_dumped;
}

Expand Down

0 comments on commit f17da0d

Please sign in to comment.