Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140035
b: refs/heads/master
c: 803094f
h: refs/heads/master
i:
  140033: 685814f
  140031: c7c9efa
v: v3
  • Loading branch information
Helge Deller authored and Kyle McMartin committed Mar 31, 2009
1 parent fafadfa commit 68cbcba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 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: 548f1176f0ac637eff895defb715ce6fde7c460a
refs/heads/master: 803094f480aa5b7dd5187a17e6e60ff24721c212
14 changes: 2 additions & 12 deletions trunk/arch/parisc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ sys_clone(unsigned long clone_flags, unsigned long usp,
However, these last 3 args are only examined
if the proper flags are set. */
int __user *child_tidptr;
int __user *parent_tidptr;
int __user *parent_tidptr = (int __user *)regs->gr[24];
int __user *child_tidptr = (int __user *)regs->gr[22];

/* usp must be word aligned. This also prevents users from
* passing in the value 1 (which is the signal for a special
Expand All @@ -243,16 +243,6 @@ sys_clone(unsigned long clone_flags, unsigned long usp,
if (usp == 0)
usp = regs->gr[30];

if (clone_flags & CLONE_PARENT_SETTID)
parent_tidptr = (int __user *)regs->gr[24];
else
parent_tidptr = NULL;

if (clone_flags & (CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID))
child_tidptr = (int __user *)regs->gr[22];
else
child_tidptr = NULL;

return do_fork(clone_flags, usp, regs, 0, parent_tidptr, child_tidptr);
}

Expand Down

0 comments on commit 68cbcba

Please sign in to comment.