diff options
author | David Howells <dhowells@redhat.com> | 2005-04-27 18:39:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-27 18:39:03 -0400 |
commit | 5fc3e624ad7278604628c598e92aa77c67064166 (patch) | |
tree | 7570fde464d579ce455c865f07a613e967e9396c /fs | |
parent | fc67b16ecaf6ebde04096030c268adddade023f1 (diff) |
[PATCH] NFS4: Don't use __user with compat_uptr_t
The attached patch removes __user from compat_uptr_t types in the NFS4 mount
32-bit->64-bit compatibility structures.
Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/compat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/compat.c b/fs/compat.c index 67c0b94d1148..728cd8365384 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -809,7 +809,7 @@ static void *do_smb_super_data_conv(void *raw_data) | |||
809 | 809 | ||
810 | struct compat_nfs_string { | 810 | struct compat_nfs_string { |
811 | compat_uint_t len; | 811 | compat_uint_t len; |
812 | compat_uptr_t __user data; | 812 | compat_uptr_t data; |
813 | }; | 813 | }; |
814 | 814 | ||
815 | static inline void compat_nfs_string(struct nfs_string *dst, | 815 | static inline void compat_nfs_string(struct nfs_string *dst, |
@@ -834,10 +834,10 @@ struct compat_nfs4_mount_data_v1 { | |||
834 | struct compat_nfs_string mnt_path; | 834 | struct compat_nfs_string mnt_path; |
835 | struct compat_nfs_string hostname; | 835 | struct compat_nfs_string hostname; |
836 | compat_uint_t host_addrlen; | 836 | compat_uint_t host_addrlen; |
837 | compat_uptr_t __user host_addr; | 837 | compat_uptr_t host_addr; |
838 | compat_int_t proto; | 838 | compat_int_t proto; |
839 | compat_int_t auth_flavourlen; | 839 | compat_int_t auth_flavourlen; |
840 | compat_uptr_t __user auth_flavours; | 840 | compat_uptr_t auth_flavours; |
841 | }; | 841 | }; |
842 | 842 | ||
843 | static int do_nfs4_super_data_conv(void *raw_data) | 843 | static int do_nfs4_super_data_conv(void *raw_data) |