Messages in this thread Patch in this message | | | Date | Sun, 01 Aug 1999 16:08:29 +0200 | From | Artur Skawina <> | Subject | [PATCH] kernel/itimer.c verify_area |
| |
diff -urNp --exclude-from /usr/src/lkdontdiff /img/linux-2.3.12/kernel/itimer.c linux-2.3.12as/kernel/itimer.c --- /img/linux-2.3.12/kernel/itimer.c Tue Nov 24 21:51:44 1998 +++ linux-2.3.12as/kernel/itimer.c Fri Jul 30 16:10:53 1999 @@ -34,7 +34,7 @@ static unsigned long tvtojiffies(struct return HZ*sec+usec; } -static void jiffiestotv(unsigned long jiffies, struct timeval *value) +static inline void jiffiestotv(unsigned long jiffies, struct timeval *value) { value->tv_usec = (jiffies % HZ) * (1000000 / HZ); value->tv_sec = jiffies / HZ; @@ -156,8 +156,6 @@ asmlinkage int sys_setitimer(int which, int error; if (value) { - if(verify_area(VERIFY_READ, value, sizeof(*value))) - return -EFAULT; if(copy_from_user(&set_buffer, value, sizeof(set_buffer))) return -EFAULT; } else
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |