[PATCH] fix __user annotations in drivers/base/memory.c
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 1 Feb 2006 11:06:16 +0000 (06:06 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 8 Feb 2006 01:58:04 +0000 (20:58 -0500)
sysfs store doesn't deal with userland pointers

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/base/memory.c

index d1a0522..105a0d6 100644 (file)
@@ -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;