diff options
Diffstat (limited to 'arch/powerpc/kernel/signal_32.c')
-rw-r--r-- | arch/powerpc/kernel/signal_32.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c index de586801fd78..8a5ea4a8f5d8 100644 --- a/arch/powerpc/kernel/signal_32.c +++ b/arch/powerpc/kernel/signal_32.c | |||
@@ -688,30 +688,6 @@ int copy_siginfo_from_user32(siginfo_t *to, struct compat_siginfo __user *from) | |||
688 | 688 | ||
689 | return 0; | 689 | return 0; |
690 | } | 690 | } |
691 | |||
692 | /* | ||
693 | * Note: it is necessary to treat pid and sig as unsigned ints, with the | ||
694 | * corresponding cast to a signed int to insure that the proper conversion | ||
695 | * (sign extension) between the register representation of a signed int | ||
696 | * (msr in 32-bit mode) and the register representation of a signed int | ||
697 | * (msr in 64-bit mode) is performed. | ||
698 | */ | ||
699 | long compat_sys_rt_sigqueueinfo(u32 pid, u32 sig, compat_siginfo_t __user *uinfo) | ||
700 | { | ||
701 | siginfo_t info; | ||
702 | int ret; | ||
703 | mm_segment_t old_fs = get_fs(); | ||
704 | |||
705 | ret = copy_siginfo_from_user32(&info, uinfo); | ||
706 | if (unlikely(ret)) | ||
707 | return ret; | ||
708 | |||
709 | set_fs (KERNEL_DS); | ||
710 | /* The __user pointer cast is valid becasuse of the set_fs() */ | ||
711 | ret = sys_rt_sigqueueinfo((int)pid, (int)sig, (siginfo_t __user *) &info); | ||
712 | set_fs (old_fs); | ||
713 | return ret; | ||
714 | } | ||
715 | #endif /* CONFIG_PPC64 */ | 691 | #endif /* CONFIG_PPC64 */ |
716 | 692 | ||
717 | /* | 693 | /* |