Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218572
b: refs/heads/master
c: 98391cf
h: refs/heads/master
v: v3
  • Loading branch information
KOSAKI Motohiro authored and Linus Torvalds committed Oct 28, 2010
1 parent 899d4f3 commit c996493
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 478735e38887077ac77a9756121b6ce0cb956e2f
refs/heads/master: 98391cf4dcf893e9e74e1c14189851dbc9c5ad0d
3 changes: 1 addition & 2 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ int flush_old_exec(struct linux_binprm * bprm)

bprm->mm = NULL; /* We're using it now */

current->flags &= ~PF_RANDOMIZE;
current->flags &= ~(PF_RANDOMIZE | PF_KTHREAD);
flush_thread();
current->personality &= ~bprm->per_clear;

Expand Down Expand Up @@ -1412,7 +1412,6 @@ int do_execve(const char * filename,
if (retval < 0)
goto out;

current->flags &= ~PF_KTHREAD;
retval = search_binary_handler(bprm,regs);
if (retval < 0)
goto out;
Expand Down

0 comments on commit c996493

Please sign in to comment.