Commit 0c41bbc8 authored by Linus Torvalds's avatar Linus Torvalds

ppc64: missing __user annotations noticed by stricter checks.

parent 1fbd4d92
......@@ -332,8 +332,8 @@ void start_thread(struct pt_regs *regs, unsigned long fdptr, unsigned long sp)
* entry is the TOC value we need to use.
*/
set_fs(USER_DS);
__get_user(entry, (unsigned long *)fdptr);
__get_user(toc, (unsigned long *)fdptr+1);
__get_user(entry, (unsigned long __user *)fdptr);
__get_user(toc, (unsigned long __user *)fdptr+1);
/* Check whether the e_entry function descriptor entries
* need to be relocated before we can use them.
......@@ -386,7 +386,7 @@ int get_fpexc_mode(struct task_struct *tsk, unsigned long adr)
unsigned int val;
val = __unpack_fe01(tsk->thread.fpexc_mode);
return put_user(val, (unsigned int *) adr);
return put_user(val, (unsigned int __user *) adr);
}
int sys_clone(unsigned long clone_flags, unsigned long p2, unsigned long p3,
......
......@@ -430,7 +430,7 @@ EXPORT_SYMBOL(do_settimeofday);
* fields itself. This way, the fields which are used for
* do_settimeofday get updated too.
*/
long ppc64_sys32_stime(int* tptr)
long ppc64_sys32_stime(int __user * tptr)
{
int value;
struct timespec myTimeval;
......@@ -455,7 +455,7 @@ long ppc64_sys32_stime(int* tptr)
* fields itself. This way, the fields which are used for
* do_settimeofday get updated too.
*/
long ppc64_sys_stime(long* tptr)
long ppc64_sys_stime(long __user * tptr)
{
long value;
struct timespec myTimeval;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment