summaryrefslogtreecommitdiff
path: root/arch/x86/entry/vsyscall/vsyscall_64.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-11-05 13:10:01 +0300
committerArnd Bergmann <arnd@arndb.de>2019-11-15 16:38:28 +0300
commit21346564ccad17b928cf0d51584608531d91d298 (patch)
tree28a4de4d44b81f657974e2e89a4941a1187f6c0b /arch/x86/entry/vsyscall/vsyscall_64.c
parent82210fc778982d9386e266fa5f0b52cde5c2f0cf (diff)
downloadlinux-21346564ccad17b928cf0d51584608531d91d298.tar.xz
y2038: vdso: change time_t to __kernel_old_time_t
Only x86 uses the 'time' syscall in vdso, so change that to __kernel_old_time_t as a preparation for removing 'time_t' and '__kernel_time_t' later. Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/x86/entry/vsyscall/vsyscall_64.c')
-rw-r--r--arch/x86/entry/vsyscall/vsyscall_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/entry/vsyscall/vsyscall_64.c b/arch/x86/entry/vsyscall/vsyscall_64.c
index 76e62bcb8d87..bba5bfdb2a56 100644
--- a/arch/x86/entry/vsyscall/vsyscall_64.c
+++ b/arch/x86/entry/vsyscall/vsyscall_64.c
@@ -194,7 +194,7 @@ bool emulate_vsyscall(unsigned long error_code,
break;
case 1:
- if (!write_ok_or_segv(regs->di, sizeof(time_t))) {
+ if (!write_ok_or_segv(regs->di, sizeof(__kernel_old_time_t))) {
ret = -EFAULT;
goto check_fault;
}