Skip to content

Commit

Permalink
cpuidle: fix permission for driver name sysfs node
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mohammad Merajul Islam Molla authored and Rafael J. Wysocki committed Jul 19, 2014
1 parent 30fe688 commit 4f8eea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpuidle/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4f8eea9

Please sign in to comment.