linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ppc, exec: remove redundant set_fs(USER_DS)
       [not found]     ` <20110609155630.0f734351.akpm@linux-foundation.org>
@ 2011-06-10 13:10       ` Mathias Krause
  0 siblings, 0 replies; only message in thread
From: Mathias Krause @ 2011-06-10 13:10 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: linuxppc-dev, Andrew Morton, Linus Torvalds, linux-kernel,
	Mathias Krause

The address limit is already set in flush_old_exec() so this
set_fs(USER_DS) is redundant.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
---
 arch/powerpc/kernel/process.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index 91e52df..885a2dd 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -831,8 +831,6 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
 	unsigned long load_addr = regs->gpr[2];	/* saved by ELF_PLAT_INIT */
 #endif
 
-	set_fs(USER_DS);
-
 	/*
 	 * If we exec out of a kernel thread then thread.regs will not be
 	 * set.  Do it now.
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-10 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <BANLkTinv1teZEHMK0qymaVdcxPOErpqSyg@mail.gmail.com>
     [not found] ` <BANLkTiknCeAxe30MJdVTxDom+ko8+EDQ4A@mail.gmail.com>
     [not found]   ` <1307642718-22257-1-git-send-email-minipli@googlemail.com>
     [not found]     ` <20110609155630.0f734351.akpm@linux-foundation.org>
2011-06-10 13:10       ` [PATCH] ppc, exec: remove redundant set_fs(USER_DS) Mathias Krause

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).