diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfsroot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfsroot.c b/fs/nfs/nfsroot.c index c0a754ecdee6..1d656a645199 100644 --- a/fs/nfs/nfsroot.c +++ b/fs/nfs/nfsroot.c | |||
@@ -312,7 +312,7 @@ static int __init root_nfs_name(char *name) | |||
312 | /* Override them by options set on kernel command-line */ | 312 | /* Override them by options set on kernel command-line */ |
313 | root_nfs_parse(name, buf); | 313 | root_nfs_parse(name, buf); |
314 | 314 | ||
315 | cp = system_utsname.nodename; | 315 | cp = utsname()->nodename; |
316 | if (strlen(buf) + strlen(cp) > NFS_MAXPATHLEN) { | 316 | if (strlen(buf) + strlen(cp) > NFS_MAXPATHLEN) { |
317 | printk(KERN_ERR "Root-NFS: Pathname for remote directory too long.\n"); | 317 | printk(KERN_ERR "Root-NFS: Pathname for remote directory too long.\n"); |
318 | return -1; | 318 | return -1; |