Commit 215b5cf3 authored by Linus Torvalds's avatar Linus Torvalds

Fix do_utimes() user pointer annotations.

parent fc6d1790
...@@ -280,7 +280,7 @@ asmlinkage long sys_utime(char __user * filename, struct utimbuf __user * times) ...@@ -280,7 +280,7 @@ asmlinkage long sys_utime(char __user * filename, struct utimbuf __user * times)
* must be owner or have write permission. * must be owner or have write permission.
* Else, update from *times, must be owner or super user. * Else, update from *times, must be owner or super user.
*/ */
long do_utimes(char __user * filename, struct timeval __user * times) long do_utimes(char __user * filename, struct timeval * times)
{ {
int error; int error;
struct nameidata nd; struct nameidata nd;
......
...@@ -204,7 +204,7 @@ extern void do_settimeofday(struct timeval *tv); ...@@ -204,7 +204,7 @@ extern void do_settimeofday(struct timeval *tv);
extern int do_sys_settimeofday(struct timeval *tv, struct timezone *tz); extern int do_sys_settimeofday(struct timeval *tv, struct timezone *tz);
extern void clock_was_set(void); // call when ever the clock is set extern void clock_was_set(void); // call when ever the clock is set
extern long do_nanosleep(struct timespec *t); extern long do_nanosleep(struct timespec *t);
extern long do_utimes(char * filename, struct timeval * times); extern long do_utimes(char __user * filename, struct timeval * times);
#endif #endif
#define FD_SETSIZE __FD_SETSIZE #define FD_SETSIZE __FD_SETSIZE
......
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