Commit e3455002 authored by Lee Jones's avatar Lee Jones

ab8500-chargalg: Only root should have write permission on sysfs file

Only root should have write permission on sysfs file ab8500_chargalg/chargalg.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 8757a08e
......@@ -1711,7 +1711,7 @@ static ssize_t abx500_chargalg_sysfs_charger(struct kobject *kobj,
static struct attribute abx500_chargalg_en_charger = \
{
.name = "chargalg",
.mode = S_IWUGO,
.mode = S_IWUSR,
};
static struct attribute *abx500_chargalg_chg[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment