From: Trond Myklebust Date: Fri, 20 Oct 2006 06:28:37 +0000 (-0700) Subject: [PATCH] NFSv4: Fix thinko in fs/nfs/super.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=575b5c7870c940326a11614e0279b74356c1d44f;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [PATCH] NFSv4: Fix thinko in fs/nfs/super.c Duh. addr.sin_port should be in network byte order. Signed-off-by: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;