diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-31 19:48:05 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-31 19:48:05 -0400 |
| commit | ba8f5baba79da8eb502f8534c3a8ecb64aceb790 (patch) | |
| tree | 39a0438607446681bdf5173c7480ff90f3825945 /arch/mips/kernel/syscall.c | |
| parent | 5cedae9ca752a43cfb1074907d12c9f01fbebd45 (diff) | |
| parent | 44d921b246923380f26b8010e47ac5dfe48fcec5 (diff) | |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
[MIPS] Treat R14000 like R10000.
[MIPS] Remove EXPERIMENTAL from PAGE_SIZE_16KB
[MIPS] Update/Fix instruction definitions
[MIPS] DSP and MDMX share the same config flag bit.
[MIPS] Fix deadlock on MP with cache aliases.
[MIPS] Use generic STABS_DEBUG macro.
[MIPS] Create consistency in "system type" selection.
[MIPS] Use generic DWARF_DEBUG
[MIPS] Fix kgdb exception handler from user mode.
[MIPS] Update struct sigcontext member names
[MIPS] Update/fix futex assembly
[MIPS] Remove support for sysmips(2) SETNAME and MIPS_RDNVRAM operations.
[MIPS] Fix detection and handling of the 74K processor.
[MIPS] Add missing 34K processor IDs
[MIPS] Fix marking buddy of pte global for MIPS32 w/36-bit physical address
[MIPS] AU1xxx mips_timer_interrupt() fixes
[MIPS] Fix typo
Diffstat (limited to 'arch/mips/kernel/syscall.c')
| -rw-r--r-- | arch/mips/kernel/syscall.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c index 2aeaa2fd4b32..8f4fdd94dbd0 100644 --- a/arch/mips/kernel/syscall.c +++ b/arch/mips/kernel/syscall.c | |||
| @@ -280,27 +280,6 @@ asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3) | |||
| 280 | char __user *name; | 280 | char __user *name; |
| 281 | 281 | ||
| 282 | switch(cmd) { | 282 | switch(cmd) { |
| 283 | case SETNAME: { | ||
| 284 | char nodename[__NEW_UTS_LEN + 1]; | ||
| 285 | |||
| 286 | if (!capable(CAP_SYS_ADMIN)) | ||
| 287 | return -EPERM; | ||
| 288 | |||
| 289 | name = (char __user *) arg1; | ||
| 290 | |||
| 291 | len = strncpy_from_user(nodename, name, __NEW_UTS_LEN); | ||
| 292 | if (len < 0) | ||
| 293 | return -EFAULT; | ||
| 294 | |||
| 295 | down_write(&uts_sem); | ||
| 296 | strncpy(system_utsname.nodename, nodename, len); | ||
| 297 | nodename[__NEW_UTS_LEN] = '\0'; | ||
| 298 | strlcpy(system_utsname.nodename, nodename, | ||
| 299 | sizeof(system_utsname.nodename)); | ||
| 300 | up_write(&uts_sem); | ||
| 301 | return 0; | ||
| 302 | } | ||
| 303 | |||
| 304 | case MIPS_ATOMIC_SET: | 283 | case MIPS_ATOMIC_SET: |
| 305 | printk(KERN_CRIT "How did I get here?\n"); | 284 | printk(KERN_CRIT "How did I get here?\n"); |
| 306 | return -EINVAL; | 285 | return -EINVAL; |
| @@ -313,9 +292,6 @@ asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3) | |||
| 313 | case FLUSH_CACHE: | 292 | case FLUSH_CACHE: |
| 314 | __flush_cache_all(); | 293 | __flush_cache_all(); |
| 315 | return 0; | 294 | return 0; |
| 316 | |||
| 317 | case MIPS_RDNVRAM: | ||
| 318 | return -EIO; | ||
| 319 | } | 295 | } |
| 320 | 296 | ||
| 321 | return -EINVAL; | 297 | return -EINVAL; |
