mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[PATCH] h8300: task_stack_page()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
40f1f0deaf
commit
68f8b1f8f1
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ int copy_thread(int nr, unsigned long clone_flags,
|
|||
{
|
||||
struct pt_regs * childregs;
|
||||
|
||||
childregs = ((struct pt_regs *) (THREAD_SIZE + (unsigned long) p->thread_info)) - 1;
|
||||
childregs = (struct pt_regs *) (THREAD_SIZE + task_stack_page(p)) - 1;
|
||||
|
||||
*childregs = *regs;
|
||||
childregs->retpc = (unsigned long) ret_from_fork;
|
||||
|
|
Loading…
Reference in a new issue