Skip to content

Commit

Permalink
memory_probe: fix wrong sysfs file attribute
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shaohua Li authored and Linus Torvalds committed Oct 20, 2008
1 parent 1125b4e commit 9f1b16a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/base/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 9f1b16a

Please sign in to comment.