acer-wmi: set permissions on interface file to S_IRUGO
Subsystems (2)
PATCH 1/1 acer-wmi: set permissions on interface file to S_IRUGO
The interface file is not writable, thus set permissions to S_IRUGO.
Signed-off-by Axel Lin <[email protected]>
--- drivers/platform/x86/acer-wmi.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/platform/x86/acer-wmi.c +1 -2
@@ -1084,8 +1084,7 @@ static ssize_t show_interface(struct device *dev, struct device_attribute *attr, } } -static DEVICE_ATTR(interface, S_IWUGO | S_IRUGO | S_IWUSR, - show_interface, NULL); +static DEVICE_ATTR(interface, S_IRUGO, show_interface, NULL);/* * debugfs functions
Signature · 1 line
1.5.4.3
Matthew Garrett
AppliedQuoted 3 lines · Axel Lin
The interface file is not writable, thus set permissions to
S_IRUGO.Signed-off-by Axel Lin <[email protected]>
Applied, thanks.
Signature · 1 line
Matthew Garrett | [email protected]