From: Mohammad Merajul Islam Molla Date: Sat, 12 Jul 2014 13:29:22 +0000 (+0600) Subject: cpuidle: fix permission for driver name sysfs node X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f8eea9b9ff464ce93ab10d72993755b7d86d587;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Rafael J. Wysocki --- 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;