* [PATCH] fix user annotation in ioctl.c
@ 2011-04-11 15:56 Daniel J Blueman
2011-04-11 15:54 ` Josef Bacik
2011-04-14 6:47 ` [PATCH] Fix address space annotation (fixed) Daniel J Blueman
0 siblings, 2 replies; 3+ messages in thread
From: Daniel J Blueman @ 2011-04-11 15:56 UTC (permalink / raw)
To: Chris Mason; +Cc: Linux BTRFS
Fix address space annotation correct in ioctl.c.
Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index cfc264f..0474ec3 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2287,7 +2287,7 @@ long btrfs_ioctl_space_info(struct btrfs_root
*root, void __user *arg)
struct btrfs_ioctl_space_info space;
struct btrfs_ioctl_space_info *dest;
struct btrfs_ioctl_space_info *dest_orig;
- struct btrfs_ioctl_space_info *user_dest;
+ struct btrfs_ioctl_space_info __user *user_dest;
struct btrfs_space_info *info;
u64 types[] = {BTRFS_BLOCK_GROUP_DATA,
BTRFS_BLOCK_GROUP_SYSTEM,
@@ -2387,7 +2387,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));
if (copy_to_user(user_dest, dest_orig, alloc_size))
--
Daniel J Blueman
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fix user annotation in ioctl.c
2011-04-11 15:56 [PATCH] fix user annotation in ioctl.c Daniel J Blueman
@ 2011-04-11 15:54 ` Josef Bacik
2011-04-14 6:47 ` [PATCH] Fix address space annotation (fixed) Daniel J Blueman
1 sibling, 0 replies; 3+ messages in thread
From: Josef Bacik @ 2011-04-11 15:54 UTC (permalink / raw)
To: Daniel J Blueman; +Cc: Chris Mason, Linux BTRFS
On 04/11/2011 11:56 AM, Daniel J Blueman wrote:
> Fix address space annotation correct in ioctl.c.
>
> Signed-off-by: Daniel J Blueman<daniel.blueman@gmail.com>
>
Reviewed-by: Josef Bacik <josef@redhat.com>
Thanks,
Josef
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] Fix address space annotation (fixed)
2011-04-11 15:56 [PATCH] fix user annotation in ioctl.c Daniel J Blueman
2011-04-11 15:54 ` Josef Bacik
@ 2011-04-14 6:47 ` Daniel J Blueman
1 sibling, 0 replies; 3+ messages in thread
From: Daniel J Blueman @ 2011-04-14 6:47 UTC (permalink / raw)
To: Chris Mason; +Cc: Josef Bacik, Linux BTRFS
Fix address space annotation.
---
fs/btrfs/ioctl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index de76a6d..2b1e53e 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2287,7 +2287,7 @@ static long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg)
struct btrfs_ioctl_space_info space;
struct btrfs_ioctl_space_info *dest;
struct btrfs_ioctl_space_info *dest_orig;
- struct btrfs_ioctl_space_info *user_dest;
+ struct btrfs_ioctl_space_info __user *user_dest;
struct btrfs_space_info *info;
u64 types[] = {BTRFS_BLOCK_GROUP_DATA,
BTRFS_BLOCK_GROUP_SYSTEM,
@@ -2387,7 +2387,7 @@ static 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));
if (copy_to_user(user_dest, dest_orig, alloc_size))
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-14 6:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-11 15:56 [PATCH] fix user annotation in ioctl.c Daniel J Blueman
2011-04-11 15:54 ` Josef Bacik
2011-04-14 6:47 ` [PATCH] Fix address space annotation (fixed) Daniel J Blueman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).