Skip to content

Commit

Permalink
[PATCH] NFSv4: Fix thinko in fs/nfs/super.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Trond Myklebust authored and Linus Torvalds committed Oct 20, 2006
1 parent 0e7d738 commit 575b5c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 575b5c7

Please sign in to comment.