Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3dea7ca7 authored by Rusty Russell's avatar Rusty Russell Committed by Avi Kivity
Browse files

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: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 54e11fa1
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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)
{