diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-10-20 02:28:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-20 13:26:38 -0400 |
commit | 575b5c7870c940326a11614e0279b74356c1d44f (patch) | |
tree | 5d083bc7356d6da6a146039f4fb8a9dfe0d61b52 /fs/nfs | |
parent | 0e7d73824e6b0024100701da246fec769dd8f087 (diff) |
[PATCH] NFSv4: Fix thinko in fs/nfs/super.c
Duh. addr.sin_port should be in network byte order.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 28659a919d6e..28108c82b887 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -834,7 +834,7 @@ static int nfs4_get_sb(struct file_system_type *fs_type, | |||
834 | } | 834 | } |
835 | /* RFC3530: The default port for NFS is 2049 */ | 835 | /* RFC3530: The default port for NFS is 2049 */ |
836 | if (addr.sin_port == 0) | 836 | if (addr.sin_port == 0) |
837 | addr.sin_port = NFS_PORT; | 837 | addr.sin_port = htons(NFS_PORT); |
838 | 838 | ||
839 | /* Grab the authentication type */ | 839 | /* Grab the authentication type */ |
840 | authflavour = RPC_AUTH_UNIX; | 840 | authflavour = RPC_AUTH_UNIX; |