summaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle/sysfs.c
diff options
context:
space:
mode:
authorMohammad Merajul Islam Molla <meraj.enigma@gmail.com>2014-07-12 15:29:22 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-07-19 21:43:28 +0200
commit4f8eea9b9ff464ce93ab10d72993755b7d86d587 (patch)
tree700494b19320390e346e2741a76da7d79b681a70 /drivers/cpuidle/sysfs.c
parentcpuidle: move idle traces to cpuidle_enter_state() (diff)
downloadlinux-4f8eea9b9ff464ce93ab10d72993755b7d86d587.tar.xz
linux-4f8eea9b9ff464ce93ab10d72993755b7d86d587.zip
cpuidle: fix permission for driver name sysfs node
cpuidle driver name sysfs node is read-only, so permissions should be 0444. Signed-off-by: Mohammad Merajul Islam Molla <meraj.enigma@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpuidle/sysfs.c')
-rw-r--r--drivers/cpuidle/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpuidle/sysfs.c b/drivers/cpuidle/sysfs.c
index efe2f175168f..97c5903b4606 100644
--- 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, 0644, show, NULL)
+ __ATTR(_name, 0444, show, NULL)
struct cpuidle_driver_kobj {
struct cpuidle_driver *drv;