diff options
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/init_task.c | 3 | ||||
-rw-r--r-- | arch/sh/kernel/process_32.c | 5 | ||||
-rw-r--r-- | arch/sh/kernel/process_64.c | 5 |
3 files changed, 0 insertions, 13 deletions
diff --git a/arch/sh/kernel/init_task.c b/arch/sh/kernel/init_task.c index 80c35ff71d56..1719957c0a69 100644 --- a/arch/sh/kernel/init_task.c +++ b/arch/sh/kernel/init_task.c | |||
@@ -10,9 +10,6 @@ | |||
10 | static struct signal_struct init_signals = INIT_SIGNALS(init_signals); | 10 | static struct signal_struct init_signals = INIT_SIGNALS(init_signals); |
11 | static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); | 11 | static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); |
12 | struct pt_regs fake_swapper_regs; | 12 | struct pt_regs fake_swapper_regs; |
13 | struct mm_struct init_mm = INIT_MM(init_mm); | ||
14 | EXPORT_SYMBOL(init_mm); | ||
15 | |||
16 | /* | 13 | /* |
17 | * Initial thread structure. | 14 | * Initial thread structure. |
18 | * | 15 | * |
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c index 9289ede29c7b..601bbc0ec74e 100644 --- a/arch/sh/kernel/process_32.c +++ b/arch/sh/kernel/process_32.c | |||
@@ -367,11 +367,6 @@ asmlinkage int sys_execve(char __user *ufilename, char __user * __user *uargv, | |||
367 | goto out; | 367 | goto out; |
368 | 368 | ||
369 | error = do_execve(filename, uargv, uenvp, regs); | 369 | error = do_execve(filename, uargv, uenvp, regs); |
370 | if (error == 0) { | ||
371 | task_lock(current); | ||
372 | current->ptrace &= ~PT_DTRACE; | ||
373 | task_unlock(current); | ||
374 | } | ||
375 | putname(filename); | 370 | putname(filename); |
376 | out: | 371 | out: |
377 | return error; | 372 | return error; |
diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c index 96be839040f8..3826773496d8 100644 --- a/arch/sh/kernel/process_64.c +++ b/arch/sh/kernel/process_64.c | |||
@@ -529,11 +529,6 @@ asmlinkage int sys_execve(char *ufilename, char **uargv, | |||
529 | (char __user * __user *)uargv, | 529 | (char __user * __user *)uargv, |
530 | (char __user * __user *)uenvp, | 530 | (char __user * __user *)uenvp, |
531 | pregs); | 531 | pregs); |
532 | if (error == 0) { | ||
533 | task_lock(current); | ||
534 | current->ptrace &= ~PT_DTRACE; | ||
535 | task_unlock(current); | ||
536 | } | ||
537 | putname(filename); | 532 | putname(filename); |
538 | out: | 533 | out: |
539 | return error; | 534 | return error; |