mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
Staging: samsung-laptop: fix up my fixup for some sysfs attribute permissions
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>
This commit is contained in:
parent
c9e51d9e4b
commit
4d7bc388b4
@ -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);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user