X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=kernel%2Fcompat.c;h=55551989d9da50215c2c0954d55baa2a83bc03a9;hb=c605c39677b9842b0566013e0cf30bc13e90bdbc;hp=05adfd6fa8bf9dd1137e19520ea8f3b28c5434d2;hpb=746b25b1aa0f5736d585728ded70a8141da91edb;p=linux-2.6-microblaze.git diff --git a/kernel/compat.c b/kernel/compat.c index 05adfd6fa8bf..55551989d9da 100644 --- a/kernel/compat.c +++ b/kernel/compat.c @@ -269,24 +269,3 @@ get_compat_sigset(sigset_t *set, const compat_sigset_t __user *compat) return 0; } EXPORT_SYMBOL_GPL(get_compat_sigset); - -/* - * Allocate user-space memory for the duration of a single system call, - * in order to marshall parameters inside a compat thunk. - */ -void __user *compat_alloc_user_space(unsigned long len) -{ - void __user *ptr; - - /* If len would occupy more than half of the entire compat space... */ - if (unlikely(len > (((compat_uptr_t)~0) >> 1))) - return NULL; - - ptr = arch_compat_alloc_user_space(len); - - if (unlikely(!access_ok(ptr, len))) - return NULL; - - return ptr; -} -EXPORT_SYMBOL_GPL(compat_alloc_user_space);