Skip to content

Commit 7a6fed1

Browse files
committed
speakup: fix incorrect perms on speakup_acntsa.c
22c9bca contained a bad substitution for ROOT_W => S_IRUSR|S_IRUGO instead of S_IWUSR|S_IRUGO. Fixes: 22c9bca Signed-off-by: Rusty Russell <[email protected]>
1 parent cea092c commit 7a6fed1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/staging/speakup/speakup_acntsa.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ static struct kobj_attribute vol_attribute =
6060
__ATTR(vol, S_IWUGO|S_IRUGO, spk_var_show, spk_var_store);
6161

6262
static struct kobj_attribute delay_time_attribute =
63-
__ATTR(delay_time, S_IRUSR|S_IRUGO, spk_var_show, spk_var_store);
63+
__ATTR(delay_time, S_IWUSR|S_IRUGO, spk_var_show, spk_var_store);
6464
static struct kobj_attribute direct_attribute =
6565
__ATTR(direct, S_IWUGO|S_IRUGO, spk_var_show, spk_var_store);
6666
static struct kobj_attribute full_time_attribute =
67-
__ATTR(full_time, S_IRUSR|S_IRUGO, spk_var_show, spk_var_store);
67+
__ATTR(full_time, S_IWUSR|S_IRUGO, spk_var_show, spk_var_store);
6868
static struct kobj_attribute jiffy_delta_attribute =
69-
__ATTR(jiffy_delta, S_IRUSR|S_IRUGO, spk_var_show, spk_var_store);
69+
__ATTR(jiffy_delta, S_IWUSR|S_IRUGO, spk_var_show, spk_var_store);
7070
static struct kobj_attribute trigger_time_attribute =
71-
__ATTR(trigger_time, S_IRUSR|S_IRUGO, spk_var_show, spk_var_store);
71+
__ATTR(trigger_time, S_IWUSR|S_IRUGO, spk_var_show, spk_var_store);
7272

7373
/*
7474
* Create a group of attributes so that we can create and destroy them all

0 commit comments

Comments
 (0)