Commit 2f14cd23 authored by Linus Torvalds's avatar Linus Torvalds

Annotate kernel/time.c with user pointer annotations

parent b9a8a0bd
...@@ -90,7 +90,7 @@ asmlinkage long sys_stime(int * tptr) ...@@ -90,7 +90,7 @@ asmlinkage long sys_stime(int * tptr)
#endif #endif
asmlinkage long sys_gettimeofday(struct timeval *tv, struct timezone *tz) asmlinkage long sys_gettimeofday(struct timeval __user *tv, struct timezone __user *tz)
{ {
if (likely(tv != NULL)) { if (likely(tv != NULL)) {
struct timeval ktv; struct timeval ktv;
...@@ -166,7 +166,7 @@ int do_sys_settimeofday(struct timeval *tv, struct timezone *tz) ...@@ -166,7 +166,7 @@ int do_sys_settimeofday(struct timeval *tv, struct timezone *tz)
return 0; return 0;
} }
asmlinkage long sys_settimeofday(struct timeval *tv, struct timezone *tz) asmlinkage long sys_settimeofday(struct timeval __user *tv, struct timezone __user *tz)
{ {
struct timeval new_tv; struct timeval new_tv;
struct timezone new_tz; struct timezone new_tz;
...@@ -387,7 +387,7 @@ leave: if ((time_status & (STA_UNSYNC|STA_CLOCKERR)) != 0 ...@@ -387,7 +387,7 @@ leave: if ((time_status & (STA_UNSYNC|STA_CLOCKERR)) != 0
return(result); return(result);
} }
asmlinkage long sys_adjtimex(struct timex *txc_p) asmlinkage long sys_adjtimex(struct timex __user *txc_p)
{ {
struct timex txc; /* Local copy of parameter */ struct timex txc; /* Local copy of parameter */
int ret; int ret;
......
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