cpuidle: fix permission for driver name sysfs node
authorMohammad Merajul Islam Molla <meraj.enigma@gmail.com>
Sat, 12 Jul 2014 13:29:22 +0000 (19:29 +0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
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 <meraj.enigma@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/sysfs.c

index efe2f175168f608f6170d37d516a444cab6c0676..97c5903b4606cf0fa02aecec826cbed605796234 100644 (file)
@@ -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;