aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/clnt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 124ff0ceb55b..78696f2dc7d6 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -161,10 +161,10 @@ static struct rpc_clnt * rpc_new_client(struct rpc_xprt *xprt, char *servname, s
161 } 161 }
162 162
163 /* save the nodename */ 163 /* save the nodename */
164 clnt->cl_nodelen = strlen(system_utsname.nodename); 164 clnt->cl_nodelen = strlen(utsname()->nodename);
165 if (clnt->cl_nodelen > UNX_MAXNODENAME) 165 if (clnt->cl_nodelen > UNX_MAXNODENAME)
166 clnt->cl_nodelen = UNX_MAXNODENAME; 166 clnt->cl_nodelen = UNX_MAXNODENAME;
167 memcpy(clnt->cl_nodename, system_utsname.nodename, clnt->cl_nodelen); 167 memcpy(clnt->cl_nodename, utsname()->nodename, clnt->cl_nodelen);
168 return clnt; 168 return clnt;
169 169
170out_no_auth: 170out_no_auth: