aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r--fs/nfs/client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 06f064d8fbbe..874018113d0e 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -682,6 +682,8 @@ static int nfs_init_server(struct nfs_server *server,
682 if (error < 0) 682 if (error < 0)
683 goto error; 683 goto error;
684 684
685 server->port = data->nfs_server.port;
686
685 error = nfs_init_server_rpcclient(server, &timeparms, data->auth_flavors[0]); 687 error = nfs_init_server_rpcclient(server, &timeparms, data->auth_flavors[0]);
686 if (error < 0) 688 if (error < 0)
687 goto error; 689 goto error;
@@ -1064,6 +1066,8 @@ static int nfs4_init_server(struct nfs_server *server,
1064 server->acdirmin = data->acdirmin * HZ; 1066 server->acdirmin = data->acdirmin * HZ;
1065 server->acdirmax = data->acdirmax * HZ; 1067 server->acdirmax = data->acdirmax * HZ;
1066 1068
1069 server->port = data->nfs_server.port;
1070
1067 error = nfs_init_server_rpcclient(server, &timeparms, data->auth_flavors[0]); 1071 error = nfs_init_server_rpcclient(server, &timeparms, data->auth_flavors[0]);
1068 1072
1069error: 1073error: