aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2007-07-31 20:12:22 -0400
committerAvi Kivity <avi@qumranet.com>2007-10-13 04:18:22 -0400
commit3dea7ca7160f80dd6d31c0bbeb2d871e51b567b6 (patch)
tree74ee76cb5dc45e3f3b39c8dbd0b2e4089a5d6ff4
parent54e11fa1f87771df0fc1bb42a75be0740c3babb9 (diff)
KVM: Remove stat_set from debugfs
We shouldn't define stat_set on the debug attributes, since that will cause silent failure on writing: without a set argument, userspace will get -EACCESS. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r--drivers/kvm/kvm_main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 55639aceca63..25d76a5a9999 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -3017,11 +3017,7 @@ static u64 stat_get(void *_offset)
3017 return total; 3017 return total;
3018} 3018}
3019 3019
3020static void stat_set(void *offset, u64 val) 3020DEFINE_SIMPLE_ATTRIBUTE(stat_fops, stat_get, NULL, "%llu\n");
3021{
3022}
3023
3024DEFINE_SIMPLE_ATTRIBUTE(stat_fops, stat_get, stat_set, "%llu\n");
3025 3021
3026static __init void kvm_init_debug(void) 3022static __init void kvm_init_debug(void)
3027{ 3023{