From 683e967a1bab7d1a1ac527612869c93450de7d5d Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Wed, 27 Feb 2008 09:39:52 +0100 Subject: [PATCH] --- yaml --- r: 86593 b: refs/heads/master c: d67bbacb4b557ece3b41abdcb616354ac0ce00e1 h: refs/heads/master i: 86591: e5e1964187822f64bb1b0ce61c11d15b2dfce086 v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/vsyscall_64.c | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 6adc23ab3097..d4413b1748ce 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cded932b75ab0a5f9181ee3da34a0a488d1a14fd +refs/heads/master: d67bbacb4b557ece3b41abdcb616354ac0ce00e1 diff --git a/trunk/arch/x86/kernel/vsyscall_64.c b/trunk/arch/x86/kernel/vsyscall_64.c index b6be812fac05..edff4c985485 100644 --- a/trunk/arch/x86/kernel/vsyscall_64.c +++ b/trunk/arch/x86/kernel/vsyscall_64.c @@ -222,10 +222,19 @@ long __vsyscall(3) venosys_1(void) } #ifdef CONFIG_SYSCTL + +static int +vsyscall_sysctl_change(ctl_table *ctl, int write, struct file * filp, + void __user *buffer, size_t *lenp, loff_t *ppos) +{ + return proc_dointvec(ctl, write, filp, buffer, lenp, ppos); +} + static ctl_table kernel_table2[] = { { .procname = "vsyscall64", .data = &vsyscall_gtod_data.sysctl_enabled, .maxlen = sizeof(int), - .mode = 0644 }, + .mode = 0644, + .proc_handler = vsyscall_sysctl_change }, {} };