Skip to content

Commit

Permalink
fs/binfmt_elf.c: remove unneeded initialization of mm->start_stack
Browse files Browse the repository at this point in the history
As pointed out by [email protected], setup_arg_pages() already
initialized current->mm->start_stack.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=202881
Reported-by: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed May 15, 2019
1 parent 7507c40 commit 22f084d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/binfmt_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,6 @@ static int load_elf_binary(struct linux_binprm *bprm)
if (retval < 0)
goto out_free_dentry;

current->mm->start_stack = bprm->p;

/* Now we do a little grungy work by mmapping the ELF image into
the correct location in memory. */
for(i = 0, elf_ppnt = elf_phdata;
Expand Down

0 comments on commit 22f084d

Please sign in to comment.