Skip to content

Commit

Permalink
[PATCH] NFS4: Don't use __user with compat_uptr_t
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Howells authored and Linus Torvalds committed Apr 27, 2005
1 parent fc67b16 commit 5fc3e62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ static void *do_smb_super_data_conv(void *raw_data)

struct compat_nfs_string {
compat_uint_t len;
compat_uptr_t __user data;
compat_uptr_t data;
};

static inline void compat_nfs_string(struct nfs_string *dst,
Expand All @@ -834,10 +834,10 @@ struct compat_nfs4_mount_data_v1 {
struct compat_nfs_string mnt_path;
struct compat_nfs_string hostname;
compat_uint_t host_addrlen;
compat_uptr_t __user host_addr;
compat_uptr_t host_addr;
compat_int_t proto;
compat_int_t auth_flavourlen;
compat_uptr_t __user auth_flavours;
compat_uptr_t auth_flavours;
};

static int do_nfs4_super_data_conv(void *raw_data)
Expand Down

0 comments on commit 5fc3e62

Please sign in to comment.