sparc32: Fix thinko in previous change.
authorDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2010 20:29:16 +0000 (12:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2010 20:29:16 +0000 (12:29 -0800)
Should mask stack with 0xf not "0x15".

Noticed by Blue Swirl <blauwirbel@gmail.com>

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/process_32.c

index f23c8fda6503453668aed0f35c14bce99d0a7004..c49865b30719d2e8113313591834f34d4d5fa063 100644 (file)
@@ -526,7 +526,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
                         * Set some valid stack frames to give to the child.
                         */
                        childstack = (struct sparc_stackf __user *)
-                               (sp & ~0x15UL);
+                               (sp & ~0xfUL);
                        parentstack = (struct sparc_stackf __user *)
                                regs->u_regs[UREG_FP];