diff mbox

btrfs: fix cast address space annotation in ioctl.c

Message ID BANLkTike4U+GDkPmk2z7xiQ3ktWBEHe1SA@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Daniel J Blueman June 23, 2011, 2:49 p.m. UTC
One of the casts in ioctl.c loses the __user annotation; cast so it is
correctly maintained.

Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>

 	if (copy_to_user(user_dest, dest_orig, alloc_size))
diff mbox

Patch

diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index a3c4751..79c32d8 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2708,7 +2708,7 @@  long btrfs_ioctl_space_info(struct btrfs_root
*root, void __user *arg)
 		up_read(&info->groups_sem);
 	}

-	user_dest = (struct btrfs_ioctl_space_info *)
+	user_dest = (struct btrfs_ioctl_space_info __user *)
 		(arg + sizeof(struct btrfs_ioctl_space_args));