aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/super.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 9c1a960f5b94..de424d2f3155 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1214,9 +1214,6 @@ static int nfs_parse_mount_options(char *raw,
1214 } 1214 }
1215 } 1215 }
1216 1216
1217 nfs_set_port((struct sockaddr *)&mnt->nfs_server.address,
1218 mnt->nfs_server.port);
1219
1220 return 1; 1217 return 1;
1221 1218
1222out_nomem: 1219out_nomem:
@@ -1568,6 +1565,9 @@ static int nfs_validate_mount_data(void *options,
1568 &args->nfs_server.address)) 1565 &args->nfs_server.address))
1569 goto out_no_address; 1566 goto out_no_address;
1570 1567
1568 nfs_set_port((struct sockaddr *)&args->nfs_server.address,
1569 args->nfs_server.port);
1570
1571 nfs_set_mount_transport_protocol(args); 1571 nfs_set_mount_transport_protocol(args);
1572 1572
1573 status = nfs_parse_devname(dev_name, 1573 status = nfs_parse_devname(dev_name,
@@ -2197,6 +2197,9 @@ static int nfs4_validate_mount_data(void *options,
2197 &args->nfs_server.address)) 2197 &args->nfs_server.address))
2198 return -EINVAL; 2198 return -EINVAL;
2199 2199
2200 nfs_set_port((struct sockaddr *)&args->nfs_server.address,
2201 args->nfs_server.port);
2202
2200 nfs_validate_transport_protocol(args); 2203 nfs_validate_transport_protocol(args);
2201 2204
2202 switch (args->auth_flavor_len) { 2205 switch (args->auth_flavor_len) {