Skip to content

Commit

Permalink
[PATCH] trivial __user annotations (md)
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
viro@ZenIV.linux.org.uk authored and Linus Torvalds committed Sep 9, 2005
1 parent 0170359 commit 87162a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 87162a2

Please sign in to comment.