diff options
Diffstat (limited to 'arch/sparc/kernel/sys_sparc.c')
-rw-r--r-- | arch/sparc/kernel/sys_sparc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/sys_sparc.c b/arch/sparc/kernel/sys_sparc.c index 896863fb208a..002ab4dbe5cb 100644 --- a/arch/sparc/kernel/sys_sparc.c +++ b/arch/sparc/kernel/sys_sparc.c | |||
@@ -475,13 +475,13 @@ asmlinkage int sys_getdomainname(char __user *name, int len) | |||
475 | 475 | ||
476 | down_read(&uts_sem); | 476 | down_read(&uts_sem); |
477 | 477 | ||
478 | nlen = strlen(system_utsname.domainname) + 1; | 478 | nlen = strlen(utsname()->domainname) + 1; |
479 | err = -EINVAL; | 479 | err = -EINVAL; |
480 | if (nlen > len) | 480 | if (nlen > len) |
481 | goto out; | 481 | goto out; |
482 | 482 | ||
483 | err = -EFAULT; | 483 | err = -EFAULT; |
484 | if (!copy_to_user(name, system_utsname.domainname, nlen)) | 484 | if (!copy_to_user(name, utsname()->domainname, nlen)) |
485 | err = 0; | 485 | err = 0; |
486 | 486 | ||
487 | out: | 487 | out: |