diff options
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2135,12 +2135,12 @@ COMPAT_SYSCALL_DEFINE5(io_getevents, compat_aio_context_t, ctx_id, | |||
2135 | compat_long_t, min_nr, | 2135 | compat_long_t, min_nr, |
2136 | compat_long_t, nr, | 2136 | compat_long_t, nr, |
2137 | struct io_event __user *, events, | 2137 | struct io_event __user *, events, |
2138 | struct compat_timespec __user *, timeout) | 2138 | struct old_timespec32 __user *, timeout) |
2139 | { | 2139 | { |
2140 | struct timespec64 t; | 2140 | struct timespec64 t; |
2141 | int ret; | 2141 | int ret; |
2142 | 2142 | ||
2143 | if (timeout && compat_get_timespec64(&t, timeout)) | 2143 | if (timeout && get_old_timespec32(&t, timeout)) |
2144 | return -EFAULT; | 2144 | return -EFAULT; |
2145 | 2145 | ||
2146 | ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &t : NULL); | 2146 | ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &t : NULL); |
@@ -2160,7 +2160,7 @@ COMPAT_SYSCALL_DEFINE6(io_pgetevents, | |||
2160 | compat_long_t, min_nr, | 2160 | compat_long_t, min_nr, |
2161 | compat_long_t, nr, | 2161 | compat_long_t, nr, |
2162 | struct io_event __user *, events, | 2162 | struct io_event __user *, events, |
2163 | struct compat_timespec __user *, timeout, | 2163 | struct old_timespec32 __user *, timeout, |
2164 | const struct __compat_aio_sigset __user *, usig) | 2164 | const struct __compat_aio_sigset __user *, usig) |
2165 | { | 2165 | { |
2166 | struct __compat_aio_sigset ksig = { NULL, }; | 2166 | struct __compat_aio_sigset ksig = { NULL, }; |
@@ -2168,7 +2168,7 @@ COMPAT_SYSCALL_DEFINE6(io_pgetevents, | |||
2168 | struct timespec64 t; | 2168 | struct timespec64 t; |
2169 | int ret; | 2169 | int ret; |
2170 | 2170 | ||
2171 | if (timeout && compat_get_timespec64(&t, timeout)) | 2171 | if (timeout && get_old_timespec32(&t, timeout)) |
2172 | return -EFAULT; | 2172 | return -EFAULT; |
2173 | 2173 | ||
2174 | if (usig && copy_from_user(&ksig, usig, sizeof(ksig))) | 2174 | if (usig && copy_from_user(&ksig, usig, sizeof(ksig))) |