diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-10-11 12:28:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:17:06 -0400 |
commit | 1e5c374d3833f816b4840227c6949f689af0cb44 (patch) | |
tree | e935b95f49a5a23394b18b2b122b81f289e31586 /arch | |
parent | b971018bae94bb43ae2402f884684ad69e85f931 (diff) |
[PATCH] misc m68k __user annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/kernel/process.c | 8 | ||||
-rw-r--r-- | arch/m68k/kernel/traps.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/m68k/kernel/process.c b/arch/m68k/kernel/process.c index 45a46646c1b3..24e83d54dcee 100644 --- a/arch/m68k/kernel/process.c +++ b/arch/m68k/kernel/process.c | |||
@@ -221,13 +221,13 @@ asmlinkage int m68k_clone(struct pt_regs *regs) | |||
221 | { | 221 | { |
222 | unsigned long clone_flags; | 222 | unsigned long clone_flags; |
223 | unsigned long newsp; | 223 | unsigned long newsp; |
224 | int *parent_tidptr, *child_tidptr; | 224 | int __user *parent_tidptr, *child_tidptr; |
225 | 225 | ||
226 | /* syscall2 puts clone_flags in d1 and usp in d2 */ | 226 | /* syscall2 puts clone_flags in d1 and usp in d2 */ |
227 | clone_flags = regs->d1; | 227 | clone_flags = regs->d1; |
228 | newsp = regs->d2; | 228 | newsp = regs->d2; |
229 | parent_tidptr = (int *)regs->d3; | 229 | parent_tidptr = (int __user *)regs->d3; |
230 | child_tidptr = (int *)regs->d4; | 230 | child_tidptr = (int __user *)regs->d4; |
231 | if (!newsp) | 231 | if (!newsp) |
232 | newsp = rdusp(); | 232 | newsp = rdusp(); |
233 | return do_fork(clone_flags, newsp, regs, 0, | 233 | return do_fork(clone_flags, newsp, regs, 0, |
@@ -361,7 +361,7 @@ void dump_thread(struct pt_regs * regs, struct user * dump) | |||
361 | /* | 361 | /* |
362 | * sys_execve() executes a new program. | 362 | * sys_execve() executes a new program. |
363 | */ | 363 | */ |
364 | asmlinkage int sys_execve(char *name, char **argv, char **envp) | 364 | asmlinkage int sys_execve(char __user *name, char __user * __user *argv, char __user * __user *envp) |
365 | { | 365 | { |
366 | int error; | 366 | int error; |
367 | char * filename; | 367 | char * filename; |
diff --git a/arch/m68k/kernel/traps.c b/arch/m68k/kernel/traps.c index 4569406a2e1f..759fa244e6cd 100644 --- a/arch/m68k/kernel/traps.c +++ b/arch/m68k/kernel/traps.c | |||
@@ -326,13 +326,13 @@ static inline int do_040writeback1(unsigned short wbs, unsigned long wba, | |||
326 | 326 | ||
327 | switch (wbs & WBSIZ_040) { | 327 | switch (wbs & WBSIZ_040) { |
328 | case BA_SIZE_BYTE: | 328 | case BA_SIZE_BYTE: |
329 | res = put_user(wbd & 0xff, (char *)wba); | 329 | res = put_user(wbd & 0xff, (char __user *)wba); |
330 | break; | 330 | break; |
331 | case BA_SIZE_WORD: | 331 | case BA_SIZE_WORD: |
332 | res = put_user(wbd & 0xffff, (short *)wba); | 332 | res = put_user(wbd & 0xffff, (short __user *)wba); |
333 | break; | 333 | break; |
334 | case BA_SIZE_LONG: | 334 | case BA_SIZE_LONG: |
335 | res = put_user(wbd, (int *)wba); | 335 | res = put_user(wbd, (int __user *)wba); |
336 | break; | 336 | break; |
337 | } | 337 | } |
338 | 338 | ||