Remove stat_set from debugfs
PATCH 1/1 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-8n+1lVoiYb80n/[email protected]>
drivers/kvm/kvm_main.c +1 -5
@@ -3009,11 +3009,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 ) {
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Quoted 4 lines · Rusty Russell
We shouldn't define
stat_seton the debug attributes, since that will cause silent failure on writing: without a set argument, userspace will get-EACCESS.
EAPPLIED, ETHANKS.
Signature · 8 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/