projects/linux·commit be7ee9b2

[PATCH] fix __user annotations in drivers/base/memory.c

be7ee9b2 · Al Viro <[email protected]> · 2006-02-01 06:06:16 -05:00

sysfs store doesn't deal with userland pointers

Signed-off-by: Al Viro <[email protected]>
Commit
be7ee9b2f5ef11448f79c2ff7f47eb21b7c008b4
Parents
73a09e62

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/base/memory.cmodified+1−1View file

drivers/base/memory.c

View file
diff --git a/drivers/base/memory.c b/drivers/base/memory.c
index d1a0522..105a0d6 100644
--- a/drivers/base/memory.c
+++ b/drivers/base/memory.c
@@ -303,7 +303,7 @@ static int block_size_init(void)
*/
#ifdef CONFIG_ARCH_MEMORY_PROBE
static ssize_t
-memory_probe_store(struct class *class, const char __user *buf, size_t count)
+memory_probe_store(struct class *class, const char *buf, size_t count)
{
u64 phys_addr;
int ret;