projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8eca11
)
acer-wmi: set permissions on interface file to S_IRUGO
author
Axel Lin
<axel.lin@gmail.com>
Wed, 30 Jun 2010 02:20:23 +0000
(10:20 +0800)
committer
Matthew Garrett
<mjg@redhat.com>
Tue, 3 Aug 2010 13:48:52 +0000
(09:48 -0400)
The interface file is not writable, thus set permissions to S_IRUGO.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/acer-wmi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/acer-wmi.c
b/drivers/platform/x86/acer-wmi.c
index 56e6f1040e4f70288d38eb04a877c12da28168a3..aacd0602f859146b3a77c321f06d013a41b7fdb5 100644
(file)
--- a/
drivers/platform/x86/acer-wmi.c
+++ b/
drivers/platform/x86/acer-wmi.c
@@
-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