From 88da3d60c29990ffaa65dcf36879d7de3fedff0b Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 28 May 2004 22:19:56 -0700 Subject: Add __user annotations to arch/ppc64/kernel/process.c --- arch/ppc64/kernel/process.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'arch/ppc64/kernel/process.c') 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; -- cgit v1.2.3