Commit 9f1b16a51ea7180eca8a0d76a6bd587385a30757
Committed by
Linus Torvalds
1 parent
1125b4e394
Exists in
master
and in
7 other branches
memory_probe: fix wrong sysfs file attribute
This attribute just has a write operation. [akpm@linux-foundation.org: use S_IWUSR as suggested by Randy] Signed-off-by: Shaohua Li <shaohua.li@intel.com> Cc: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
drivers/base/memory.c
... | ... | @@ -21,6 +21,8 @@ |
21 | 21 | #include <linux/memory_hotplug.h> |
22 | 22 | #include <linux/mm.h> |
23 | 23 | #include <linux/mutex.h> |
24 | +#include <linux/stat.h> | |
25 | + | |
24 | 26 | #include <asm/atomic.h> |
25 | 27 | #include <asm/uaccess.h> |
26 | 28 | |
... | ... | @@ -325,7 +327,7 @@ |
325 | 327 | |
326 | 328 | return count; |
327 | 329 | } |
328 | -static CLASS_ATTR(probe, 0700, NULL, memory_probe_store); | |
330 | +static CLASS_ATTR(probe, S_IWUSR, NULL, memory_probe_store); | |
329 | 331 | |
330 | 332 | static int memory_probe_init(void) |
331 | 333 | { |