aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 665949d27798..b99113b0f65f 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -833,6 +833,9 @@ static int nfs4_get_sb(struct file_system_type *fs_type,
833 __FUNCTION__); 833 __FUNCTION__);
834 return -EINVAL; 834 return -EINVAL;
835 } 835 }
836 /* RFC3530: The default port for NFS is 2049 */
837 if (addr.sin_port == 0)
838 addr.sin_port = NFS_PORT;
836 839
837 /* Grab the authentication type */ 840 /* Grab the authentication type */
838 authflavour = RPC_AUTH_UNIX; 841 authflavour = RPC_AUTH_UNIX;