diff options
author | Vasiliy Kulikov <segoon@openwall.com> | 2011-02-04 07:23:36 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-23 05:41:47 -0400 |
commit | f8a0697722d12a201588225999cfc8bfcbc82781 (patch) | |
tree | 987661fda1621df6885130907235613d485845ae /drivers/mfd | |
parent | 90550d1903da8dac851d220b794e44c90a11c6ce (diff) |
mfd: ab3100: world-writable debugfs *_priv files
Don't allow everybody to change device hardware registers.
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ab3100-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/ab3100-core.c b/drivers/mfd/ab3100-core.c index 4193af5f2743..1707d224232d 100644 --- a/drivers/mfd/ab3100-core.c +++ b/drivers/mfd/ab3100-core.c | |||
@@ -613,7 +613,7 @@ static void ab3100_setup_debugfs(struct ab3100 *ab3100) | |||
613 | ab3100_get_priv.ab3100 = ab3100; | 613 | ab3100_get_priv.ab3100 = ab3100; |
614 | ab3100_get_priv.mode = false; | 614 | ab3100_get_priv.mode = false; |
615 | ab3100_get_reg_file = debugfs_create_file("get_reg", | 615 | ab3100_get_reg_file = debugfs_create_file("get_reg", |
616 | S_IWUGO, ab3100_dir, &ab3100_get_priv, | 616 | S_IWUSR, ab3100_dir, &ab3100_get_priv, |
617 | &ab3100_get_set_reg_fops); | 617 | &ab3100_get_set_reg_fops); |
618 | if (!ab3100_get_reg_file) { | 618 | if (!ab3100_get_reg_file) { |
619 | err = -ENOMEM; | 619 | err = -ENOMEM; |
@@ -623,7 +623,7 @@ static void ab3100_setup_debugfs(struct ab3100 *ab3100) | |||
623 | ab3100_set_priv.ab3100 = ab3100; | 623 | ab3100_set_priv.ab3100 = ab3100; |
624 | ab3100_set_priv.mode = true; | 624 | ab3100_set_priv.mode = true; |
625 | ab3100_set_reg_file = debugfs_create_file("set_reg", | 625 | ab3100_set_reg_file = debugfs_create_file("set_reg", |
626 | S_IWUGO, ab3100_dir, &ab3100_set_priv, | 626 | S_IWUSR, ab3100_dir, &ab3100_set_priv, |
627 | &ab3100_get_set_reg_fops); | 627 | &ab3100_get_set_reg_fops); |
628 | if (!ab3100_set_reg_file) { | 628 | if (!ab3100_set_reg_file) { |
629 | err = -ENOMEM; | 629 | err = -ENOMEM; |