summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorviro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk>2005-09-09 21:36:43 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 23:05:54 +0200
commit87162a28acceda05dadf10a8333183f6d2b55265 (patch)
tree138d822bbec7623c523db96bae43bc2c4f4a0fda /drivers
parent[PATCH] trivial __user annotations (evdev) (diff)
downloadlinux-87162a28acceda05dadf10a8333183f6d2b55265.tar.xz
linux-87162a28acceda05dadf10a8333183f6d2b55265.zip
[PATCH] trivial __user annotations (md)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/md.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 20ca80b7dc20..373ab92e367b 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -2087,7 +2087,7 @@ static int get_array_info(mddev_t * mddev, void __user * arg)
return 0;
}
-static int get_bitmap_file(mddev_t * mddev, void * arg)
+static int get_bitmap_file(mddev_t * mddev, void __user * arg)
{
mdu_bitmap_file_t *file = NULL; /* too big for stack allocation */
char *ptr, *buf = NULL;
@@ -2781,7 +2781,7 @@ static int md_ioctl(struct inode *inode, struct file *file,
goto done_unlock;
case GET_BITMAP_FILE:
- err = get_bitmap_file(mddev, (void *)arg);
+ err = get_bitmap_file(mddev, argp);
goto done_unlock;
case GET_DISK_INFO: