Skip to content

Commit

Permalink
Staging: samsung-laptop: fix up my fixup for some sysfs attribute per…
Browse files Browse the repository at this point in the history
…missions

They should be writable by root, not readable.
Doh, stupid me with the wrong flags.

Reported-by: Jonathan Cameron <jic23@cam.ac.uk>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Nov 18, 2010
1 parent c9e51d9 commit 4d7bc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/samsung-laptop/samsung-laptop.c
Original file line number Diff line number Diff line change
@@ -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);


0 comments on commit 4d7bc38

Please sign in to comment.