diff options
Diffstat (limited to 'kernel/compat.c')
-rw-r--r-- | kernel/compat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/compat.c b/kernel/compat.c index 8e40efc2928a..089d00d0da9c 100644 --- a/kernel/compat.c +++ b/kernel/compat.c | |||
@@ -93,28 +93,28 @@ int compat_put_timex(struct compat_timex __user *utp, const struct timex *txc) | |||
93 | return 0; | 93 | return 0; |
94 | } | 94 | } |
95 | 95 | ||
96 | static int __compat_get_timeval(struct timeval *tv, const struct compat_timeval __user *ctv) | 96 | static int __compat_get_timeval(struct timeval *tv, const struct old_timeval32 __user *ctv) |
97 | { | 97 | { |
98 | return (!access_ok(VERIFY_READ, ctv, sizeof(*ctv)) || | 98 | return (!access_ok(VERIFY_READ, ctv, sizeof(*ctv)) || |
99 | __get_user(tv->tv_sec, &ctv->tv_sec) || | 99 | __get_user(tv->tv_sec, &ctv->tv_sec) || |
100 | __get_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; | 100 | __get_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; |
101 | } | 101 | } |
102 | 102 | ||
103 | static int __compat_put_timeval(const struct timeval *tv, struct compat_timeval __user *ctv) | 103 | static int __compat_put_timeval(const struct timeval *tv, struct old_timeval32 __user *ctv) |
104 | { | 104 | { |
105 | return (!access_ok(VERIFY_WRITE, ctv, sizeof(*ctv)) || | 105 | return (!access_ok(VERIFY_WRITE, ctv, sizeof(*ctv)) || |
106 | __put_user(tv->tv_sec, &ctv->tv_sec) || | 106 | __put_user(tv->tv_sec, &ctv->tv_sec) || |
107 | __put_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; | 107 | __put_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; |
108 | } | 108 | } |
109 | 109 | ||
110 | static int __compat_get_timespec(struct timespec *ts, const struct compat_timespec __user *cts) | 110 | static int __compat_get_timespec(struct timespec *ts, const struct old_timespec32 __user *cts) |
111 | { | 111 | { |
112 | return (!access_ok(VERIFY_READ, cts, sizeof(*cts)) || | 112 | return (!access_ok(VERIFY_READ, cts, sizeof(*cts)) || |
113 | __get_user(ts->tv_sec, &cts->tv_sec) || | 113 | __get_user(ts->tv_sec, &cts->tv_sec) || |
114 | __get_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; | 114 | __get_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; |
115 | } | 115 | } |
116 | 116 | ||
117 | static int __compat_put_timespec(const struct timespec *ts, struct compat_timespec __user *cts) | 117 | static int __compat_put_timespec(const struct timespec *ts, struct old_timespec32 __user *cts) |
118 | { | 118 | { |
119 | return (!access_ok(VERIFY_WRITE, cts, sizeof(*cts)) || | 119 | return (!access_ok(VERIFY_WRITE, cts, sizeof(*cts)) || |
120 | __put_user(ts->tv_sec, &cts->tv_sec) || | 120 | __put_user(ts->tv_sec, &cts->tv_sec) || |