sparc64: Fix accidental syscall restart on child return from clone/fork/vfork.
authorDavid S. Miller <davem@davemloft.net>
Sun, 27 Apr 2008 21:54:02 +0000 (14:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Apr 2008 22:09:15 +0000 (15:09 -0700)
This fixes a regression added by
238468b2ac76020c192a7402c92df5097916bf4a ("[SPARC64]: Use trap type
stored in pt_regs to handle syscall restart.")

Because we now encode the "returning from syscall" status in the
pt_regs area, we have to be mindful to zap it out in the child
of a fork.

During a parallel kernel build I saw an accidental -EINTR return
from vfork() in 'make' because of this bug.

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

Simple merge