Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22f084db authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

fs/binfmt_elf.c: remove unneeded initialization of mm->start_stack

As pointed out by zoujc@lenovo.com, setup_arg_pages() already
initialized current->mm->start_stack.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=202881


Reported-by: default avatar <zoujc@lenovo.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7507c402
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;