summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-11-18 11:21:04 -0800
committerAndi Kleen <ak@linux.intel.com>2010-12-14 23:40:16 +0100
commit3193e96dd9c553125f93f6b02c3d6c23e5a5dd9a (patch)
tree1c26136526665fb74dfc2b1908b36ae0b9b5b476
parentac0d92d5f069c3db8796a0cc9c75ea7e6be5e4a8 (diff)
Staging: samsung-laptop: fix up my fixup for some sysfs attribute permissions
commit 4d7bc388b44e42a1feafa35e50eef4f24d6ca59d upstream. They should be writable by root, not readable. Doh, stupid me with the wrong flags. Reported-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rw-r--r--drivers/staging/samsung-laptop/samsung-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/samsung-laptop/samsung-laptop.c b/drivers/staging/samsung-laptop/samsung-laptop.c
index 28700b498273..ac2bf11e1119 100644
--- a/drivers/staging/samsung-laptop/samsung-laptop.c
+++ b/drivers/staging/samsung-laptop/samsung-laptop.c
@@ -356,7 +356,7 @@ static ssize_t set_silent_state(struct device *dev,
}
return count;
}
-static DEVICE_ATTR(silent, S_IRUSR | S_IRUGO,
+static DEVICE_ATTR(silent, S_IWUSR | S_IRUGO,
get_silent_state, set_silent_state);