diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-10-20 06:28:37 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-20 17:26:38 (GMT) |
commit | 575b5c7870c940326a11614e0279b74356c1d44f (patch) | |
tree | 5d083bc7356d6da6a146039f4fb8a9dfe0d61b52 /fs | |
parent | 0e7d73824e6b0024100701da246fec769dd8f087 (diff) | |
download | linux-fsl-qoriq-575b5c7870c940326a11614e0279b74356c1d44f.tar.xz |
[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')
-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 28659a9..28108c8 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, } /* RFC3530: The default port for NFS is 2049 */ if (addr.sin_port == 0) - addr.sin_port = NFS_PORT; + addr.sin_port = htons(NFS_PORT); /* Grab the authentication type */ authflavour = RPC_AUTH_UNIX; |