aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index fda1635dd133..7d84d94fa827 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1643,6 +1643,8 @@ static int nfs4_validate_mount_data(void *options,
1643 if (nfs_parse_mount_options((char *)options, args) == 0) 1643 if (nfs_parse_mount_options((char *)options, args) == 0)
1644 return -EINVAL; 1644 return -EINVAL;
1645 1645
1646 if (args->nfs_server.address.sin_port == 0)
1647 args->nfs_server.address.sin_port = htons(NFS_PORT);
1646 if (!nfs_verify_server_address((struct sockaddr *) 1648 if (!nfs_verify_server_address((struct sockaddr *)
1647 &args->nfs_server.address)) 1649 &args->nfs_server.address))
1648 return -EINVAL; 1650 return -EINVAL;