summaryrefslogtreecommitdiff
path: root/arch/ppc64/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-28 22:19:56 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-28 22:19:56 -0700
commit88da3d60c29990ffaa65dcf36879d7de3fedff0b (patch)
tree9dcda83566971f8afae580e04d89da8352a5806e /arch/ppc64/kernel
parent05ca65c3d27296a668e752894b22faabfbc9ac56 (diff)
Add __user annotations to arch/ppc64/kernel/process.c
Diffstat (limited to 'arch/ppc64/kernel')
-rw-r--r--arch/ppc64/kernel/process.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/ppc64/kernel/process.c b/arch/ppc64/kernel/process.c
index e5b353ca06f8..32486c3722f4 100644
--- a/arch/ppc64/kernel/process.c
+++ b/arch/ppc64/kernel/process.c
@@ -410,7 +410,7 @@ int sys_clone(unsigned long clone_flags, unsigned long p2, unsigned long p3,
}
return do_fork(clone_flags & ~CLONE_IDLETASK, p2, regs, 0,
- (int *)parent_tidptr, (int *)child_tidptr);
+ (int __user *)parent_tidptr, (int __user *)child_tidptr);
}
int sys_fork(unsigned long p1, unsigned long p2, unsigned long p3,
@@ -435,7 +435,7 @@ int sys_execve(unsigned long a0, unsigned long a1, unsigned long a2,
int error;
char * filename;
- filename = getname((char *) a0);
+ filename = getname((char __user *) a0);
error = PTR_ERR(filename);
if (IS_ERR(filename))
goto out;
@@ -445,7 +445,8 @@ int sys_execve(unsigned long a0, unsigned long a1, unsigned long a2,
if (regs->msr & MSR_VEC)
giveup_altivec(current);
#endif /* CONFIG_ALTIVEC */
- error = do_execve(filename, (char **) a1, (char **) a2, regs);
+ error = do_execve(filename, (char __user * __user *) a1,
+ (char __user * __user *) a2, regs);
if (error == 0)
current->ptrace &= ~PT_DTRACE;