m68k: If we fail to set sigframe up, just leave regs alone...
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Oct 2010 05:36:58 +0000 (01:36 -0400)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 7 Jan 2011 13:01:34 +0000 (14:01 +0100)
commit90731d7537317ad5d9672187f7a1dff90b29bb12
tree8d089b54e65358190f47011a122779d996b9ae90
parentf85741eb5fb2653fd9138b4bef68396615c720f7
m68k: If we fail to set sigframe up, just leave regs alone...

Same principle as with the previous patch - do not destroy the
state if sigframe setup fails.  Incidentally, it's actually
_less_ work - we don't need to go through adjust_stack dance
on failure if we don't touch regs->stkadj until we know we'd
written sigframe out.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/kernel/signal.c