diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-20 13:44:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-20 13:44:52 -0400 |
commit | f1877fb2967ec8c0c6e946cc24c253bb52ce4d06 (patch) | |
tree | 776d0ddf66155ac54b1f46e76f793a370da7dd2a /arch/mips/kernel/linux32.c | |
parent | b2ef7858db6394b758818358a43c7dd5f232bbcc (diff) | |
parent | d89e36d8df547fde2beaea82211954868da2282d (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] Fix iounmap argument to const volatile.
[MIPS] Reserve syscall numbers for kexec_load.
[MIPS] Update tb0287_defconfig
[MIPS] Update pnx8550-v2pci_defconfig
[MIPS] Update pnx8500-jbs_defconfig
[MIPS] More vr41xx pt_regs fixups
[MIPS] save_context_stack fix
[MIPS] Use compat_sys_mount.
[MIPS] Fix O32 personality(2) call with 0xffffffff argument.
[MIPS] A few more pt_regs fixups.
[MIPS] Malta: Fix uninitialized regs pointer.
[MIPS] Delete unneeded pt_regs forward declaration.
[MIPS] Use kallsyms_lookup_size_offset() instead of kallsyms_lookup()
Diffstat (limited to 'arch/mips/kernel/linux32.c')
-rw-r--r-- | arch/mips/kernel/linux32.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index 53f4171fc188..7a3ebbeba1f3 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c | |||
@@ -1055,7 +1055,9 @@ asmlinkage long sys32_newuname(struct new_utsname __user * name) | |||
1055 | asmlinkage int sys32_personality(unsigned long personality) | 1055 | asmlinkage int sys32_personality(unsigned long personality) |
1056 | { | 1056 | { |
1057 | int ret; | 1057 | int ret; |
1058 | if (current->personality == PER_LINUX32 && personality == PER_LINUX) | 1058 | personality &= 0xffffffff; |
1059 | if (personality(current->personality) == PER_LINUX32 && | ||
1060 | personality == PER_LINUX) | ||
1059 | personality = PER_LINUX32; | 1061 | personality = PER_LINUX32; |
1060 | ret = sys_personality(personality); | 1062 | ret = sys_personality(personality); |
1061 | if (ret == PER_LINUX32) | 1063 | if (ret == PER_LINUX32) |