Skip to content

Commit 68f8b1f

Browse files
Al ViroLinus Torvalds
authored andcommitted
[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>
1 parent 40f1f0d commit 68f8b1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/h8300/kernel/process.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ int copy_thread(int nr, unsigned long clone_flags,
195195
{
196196
struct pt_regs * childregs;
197197

198-
childregs = ((struct pt_regs *) (THREAD_SIZE + (unsigned long) p->thread_info)) - 1;
198+
childregs = (struct pt_regs *) (THREAD_SIZE + task_stack_page(p)) - 1;
199199

200200
*childregs = *regs;
201201
childregs->retpc = (unsigned long) ret_from_fork;

0 commit comments

Comments
 (0)