From: Trond Myklebust <[email protected]> Duh. addr.sin_port should be in network byte order. Signed-off-by: Trond Myklebust <[email protected]> --- 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_syste } /* 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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH 03/11] NFS: Fix error handling in nfs_direct_write_result()
- From: Trond Myklebust <[email protected]>
- [PATCH 09/11] NFS: remove unused check in nfs4_open_revalidate
- From: Trond Myklebust <[email protected]>
- [PATCH 02/11] NFS: Fix oops in nfs_cancel_commit_list
- From: Trond Myklebust <[email protected]>
- [PATCH 04/11] nfs4: initialize cl_ipaddr
- From: Trond Myklebust <[email protected]>
- [PATCH 05/11] NFS: Fix NFSv4 callback regression
- From: Trond Myklebust <[email protected]>
- [PATCH 10/11] SUNRPC: fix race in in-kernel RPC portmapper client
- From: Trond Myklebust <[email protected]>
- [PATCH 07/11] NFS: fix minor bug in new NFS symlink code
- From: Trond Myklebust <[email protected]>
- [PATCH 06/11] NFS: Deal with failure of invalidate_inode_pages2()
- From: Trond Myklebust <[email protected]>
- [PATCH 08/11] NFS: __nfs_revalidate_inode() can use "inode" before checking it is non-NULL
- From: Trond Myklebust <[email protected]>
- [PATCH 11/11] SUNRPC: fix a typo
- From: Trond Myklebust <[email protected]>
- [PATCH 03/11] NFS: Fix error handling in nfs_direct_write_result()
- Prev by Date: [PATCH] kernel/nsproxy.c: use kmemdup()
- Next by Date: Re: Git training wheels for the pimple faced maintainer
- Previous by thread: [PATCH] kernel/nsproxy.c: use kmemdup()
- Next by thread: [PATCH 11/11] SUNRPC: fix a typo
- Index(es):