diff options
Diffstat (limited to 'ipc/mqueue.c')
-rw-r--r-- | ipc/mqueue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index c0d58f390c3b..db7833370351 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -1461,10 +1461,10 @@ COMPAT_SYSCALL_DEFINE3(mq_getsetattr, mqd_t, mqdes, | |||
1461 | #endif | 1461 | #endif |
1462 | 1462 | ||
1463 | #ifdef CONFIG_COMPAT_32BIT_TIME | 1463 | #ifdef CONFIG_COMPAT_32BIT_TIME |
1464 | static int compat_prepare_timeout(const struct compat_timespec __user *p, | 1464 | static int compat_prepare_timeout(const struct old_timespec32 __user *p, |
1465 | struct timespec64 *ts) | 1465 | struct timespec64 *ts) |
1466 | { | 1466 | { |
1467 | if (compat_get_timespec64(ts, p)) | 1467 | if (get_old_timespec32(ts, p)) |
1468 | return -EFAULT; | 1468 | return -EFAULT; |
1469 | if (!timespec64_valid(ts)) | 1469 | if (!timespec64_valid(ts)) |
1470 | return -EINVAL; | 1470 | return -EINVAL; |
@@ -1474,7 +1474,7 @@ static int compat_prepare_timeout(const struct compat_timespec __user *p, | |||
1474 | COMPAT_SYSCALL_DEFINE5(mq_timedsend, mqd_t, mqdes, | 1474 | COMPAT_SYSCALL_DEFINE5(mq_timedsend, mqd_t, mqdes, |
1475 | const char __user *, u_msg_ptr, | 1475 | const char __user *, u_msg_ptr, |
1476 | compat_size_t, msg_len, unsigned int, msg_prio, | 1476 | compat_size_t, msg_len, unsigned int, msg_prio, |
1477 | const struct compat_timespec __user *, u_abs_timeout) | 1477 | const struct old_timespec32 __user *, u_abs_timeout) |
1478 | { | 1478 | { |
1479 | struct timespec64 ts, *p = NULL; | 1479 | struct timespec64 ts, *p = NULL; |
1480 | if (u_abs_timeout) { | 1480 | if (u_abs_timeout) { |
@@ -1489,7 +1489,7 @@ COMPAT_SYSCALL_DEFINE5(mq_timedsend, mqd_t, mqdes, | |||
1489 | COMPAT_SYSCALL_DEFINE5(mq_timedreceive, mqd_t, mqdes, | 1489 | COMPAT_SYSCALL_DEFINE5(mq_timedreceive, mqd_t, mqdes, |
1490 | char __user *, u_msg_ptr, | 1490 | char __user *, u_msg_ptr, |
1491 | compat_size_t, msg_len, unsigned int __user *, u_msg_prio, | 1491 | compat_size_t, msg_len, unsigned int __user *, u_msg_prio, |
1492 | const struct compat_timespec __user *, u_abs_timeout) | 1492 | const struct old_timespec32 __user *, u_abs_timeout) |
1493 | { | 1493 | { |
1494 | struct timespec64 ts, *p = NULL; | 1494 | struct timespec64 ts, *p = NULL; |
1495 | if (u_abs_timeout) { | 1495 | if (u_abs_timeout) { |