projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1125b4e
)
memory_probe: fix wrong sysfs file attribute
author
Shaohua Li
<
[email protected]
>
Sun, 19 Oct 2008 03:27:12 +0000
(20:27 -0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 20 Oct 2008 15:52:32 +0000
(08:52 -0700)
This attribute just has a write operation.
[
[email protected]
: use S_IWUSR as suggested by Randy]
Signed-off-by: Shaohua Li <
[email protected]
>
Cc: Randy Dunlap <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/base/memory.c
patch
|
blob
|
history
diff --git
a/drivers/base/memory.c
b/drivers/base/memory.c
index af0d175c025dcd168c5a6de866351fd0b1f83d5a..5260e9e0df48a3f9b52221f179e72fac01b45f6a 100644
(file)
--- 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)
{