diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-10-20 08:28:37 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-20 19:26:38 +0200 |
commit | 575b5c7870c940326a11614e0279b74356c1d44f (patch) | |
tree | 5d083bc7356d6da6a146039f4fb8a9dfe0d61b52 | |
parent | [PATCH] autofs3: Make sure all dentries refs are released before calling kill... (diff) | |
download | linux-575b5c7870c940326a11614e0279b74356c1d44f.tar.xz linux-575b5c7870c940326a11614e0279b74356c1d44f.zip |
[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>
-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, } /* 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; |