From: Al Viro Date: Wed, 1 Feb 2006 11:06:16 +0000 (-0500) Subject: [PATCH] fix __user annotations in drivers/base/memory.c X-Git-Tag: v2.6.16-rc3~80 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=be7ee9b2f5ef11448f79c2ff7f47eb21b7c008b4;p=linux-2.6-omap-h63xx.git [PATCH] fix __user annotations in drivers/base/memory.c sysfs store doesn't deal with userland pointers Signed-off-by: Al Viro --- diff --git a/drivers/base/memory.c b/drivers/base/memory.c index d1a05224627..105a0d61eb1 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;