]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: samsung-laptop: fix up my fixup for some sysfs attribute permissions
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 18 Nov 2010 19:21:04 +0000 (11:21 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:44:10 +0000 (12:44 -0700)
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>
drivers/staging/samsung-laptop/samsung-laptop.c

index d46b6a3f50f0597b804639722fa050816eca06a3..218e00024f0f5dcbc80324f8ed12a734ab3470a8 100644 (file)
@@ -355,7 +355,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);