From: Al Viro Date: Sun, 3 Oct 2010 05:15:49 +0000 (-0400) Subject: m68k: Don't lose state if sigframe setup fails X-Git-Tag: v2.6.38-rc1~425^2~12 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f85741eb5fb2653fd9138b4bef68396615c720f7;p=pandora-kernel.git m68k: Don't lose state if sigframe setup fails If we'd failed in setup_frame(), we've no place to store the original sigmask. It's not an unrecoverable situation - we raise SIGSEGV, but that SIGSEGV might be successfully handled (e.g. on altstack). In that case we really don't want sa_mask of original signal permanently slapped on the set of blocked signals. Standard solution: have setup_frame()/setup_rt_frame() report failure and don't mess with the signal-related state if that has happened... Signed-off-by: Al Viro Signed-off-by: Geert Uytterhoeven --- Reading git-diff-tree failed