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:
30fe688
)
cpuidle: fix permission for driver name sysfs node
author
Mohammad Merajul Islam Molla
<
[email protected]
>
Sat, 12 Jul 2014 13:29:22 +0000
(19:29 +0600)
committer
Rafael J. Wysocki
<
[email protected]
>
Sat, 19 Jul 2014 19:43:28 +0000
(21:43 +0200)
cpuidle driver name sysfs node is read-only, so permissions should be 0444.
Signed-off-by: Mohammad Merajul Islam Molla <
[email protected]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
drivers/cpuidle/sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/cpuidle/sysfs.c
b/drivers/cpuidle/sysfs.c
index efe2f175168f608f6170d37d516a444cab6c0676..97c5903b4606cf0fa02aecec826cbed605796234 100644
(file)
--- a/
drivers/cpuidle/sysfs.c
+++ b/
drivers/cpuidle/sysfs.c
@@
-445,7
+445,7
@@
static void cpuidle_remove_state_sysfs(struct cpuidle_device *device)
#define define_one_driver_ro(_name, show) \
static struct cpuidle_driver_attr attr_driver_##_name = \
- __ATTR(_name, 0
6
44, show, NULL)
+ __ATTR(_name, 0
4
44, show, NULL)
struct cpuidle_driver_kobj {
struct cpuidle_driver *drv;