Commit:     3dea7ca7160f80dd6d31c0bbeb2d871e51b567b6
Parent:     54e11fa1f87771df0fc1bb42a75be0740c3babb9
Author:     Rusty Russell <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 1 10:12:22 2007 +1000
Committer:  Avi Kivity <[EMAIL PROTECTED]>
CommitDate: Sat Oct 13 10:18:22 2007 +0200

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
 drivers/kvm/kvm_main.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 55639ac..25d76a5 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -3017,11 +3017,7 @@ static u64 stat_get(void *_offset)
        return total;
-static void stat_set(void *offset, u64 val)
-DEFINE_SIMPLE_ATTRIBUTE(stat_fops, stat_get, stat_set, "%llu\n");
+DEFINE_SIMPLE_ATTRIBUTE(stat_fops, stat_get, NULL, "%llu\n");
 static __init void kvm_init_debug(void)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to