[PATCH] trivial __user annotations (md)
author[email protected] <[email protected]>
Fri, 9 Sep 2005 19:36:43 +0000 (20:36 +0100)
committerLinus Torvalds <[email protected]>
Fri, 9 Sep 2005 21:05:54 +0000 (14:05 -0700)
Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/md/md.c

index 20ca80b7dc20611de86d418faf8da69140fd764a..373ab92e367b853066f15fc8f50b757b8184b9dc 100644 (file)
@@ -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: