summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2008-10-19 05:27:12 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-20 17:52:32 +0200
commit9f1b16a51ea7180eca8a0d76a6bd587385a30757 (patch)
tree42cece0904a9249579ce551d175c01e76e918a18 /drivers
parentsetup_per_zone_pages_min(): take zone->lock instead of zone->lru_lock (diff)
downloadlinux-9f1b16a51ea7180eca8a0d76a6bd587385a30757.tar.xz
linux-9f1b16a51ea7180eca8a0d76a6bd587385a30757.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/memory.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/base/memory.c b/drivers/base/memory.c
index af0d175c025d..5260e9e0df48 100644
--- a/drivers/base/memory.c
+++ b/drivers/base/memory.c
@@ -21,6 +21,8 @@
#include <linux/memory_hotplug.h>
#include <linux/mm.h>
#include <linux/mutex.h>
+#include <linux/stat.h>
+
#include <asm/atomic.h>
#include <asm/uaccess.h>
@@ -325,7 +327,7 @@ memory_probe_store(struct class *class, const char *buf, size_t count)
return count;
}
-static CLASS_ATTR(probe, 0700, NULL, memory_probe_store);
+static CLASS_ATTR(probe, S_IWUSR, NULL, memory_probe_store);
static int memory_probe_init(void)
{