aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/super.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 5085f53be2fe..094d2f832c3c 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1027,8 +1027,10 @@ static int nfs_try_mount(struct nfs_parsed_mount_data *args,
1027 sin = args->mount_server.address; 1027 sin = args->mount_server.address;
1028 else 1028 else
1029 sin = args->nfs_server.address; 1029 sin = args->nfs_server.address;
1030 if (args->mount_server.port != 0) 1030 /*
1031 sin.sin_port = htons(args->mount_server.port); 1031 * autobind will be used if mount_server.port == 0
1032 */
1033 sin.sin_port = htons(args->mount_server.port);
1032 1034
1033 /* 1035 /*
1034 * Now ask the mount server to map our export path 1036 * Now ask the mount server to map our export path