mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
ARM: exec: remove redundant set_fs(USER_DS)
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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
b21d55e98a
commit
e88443cdfc
@ -55,7 +55,6 @@ struct thread_struct {
|
|||||||
#define start_thread(regs,pc,sp) \
|
#define start_thread(regs,pc,sp) \
|
||||||
({ \
|
({ \
|
||||||
unsigned long *stack = (unsigned long *)sp; \
|
unsigned long *stack = (unsigned long *)sp; \
|
||||||
set_fs(USER_DS); \
|
|
||||||
memset(regs->uregs, 0, sizeof(regs->uregs)); \
|
memset(regs->uregs, 0, sizeof(regs->uregs)); \
|
||||||
if (current->personality & ADDR_LIMIT_32BIT) \
|
if (current->personality & ADDR_LIMIT_32BIT) \
|
||||||
regs->ARM_cpsr = USR_MODE; \
|
regs->ARM_cpsr = USR_MODE; \
|
||||||
|
Loading…
Reference in New Issue
Block a user