提交 87162a28 编写于 作者: V viro@ZenIV.linux.org.uk 提交者: Linus Torvalds

[PATCH] trivial __user annotations (md)

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 01703597
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册