From: Will Deacon Date: Tue, 8 Nov 2011 04:51:19 +0000 (+0000) Subject: powerpc/signal32: Fix sigset_t conversion when copying to user X-Git-Tag: v3.2-rc3~41^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a313f4c55d4952f2105fe33a4957ed858e998359;p=pandora-kernel.git powerpc/signal32: Fix sigset_t conversion when copying to user On PPC64, put_sigset_t converts a sigset_t to a compat_sigset_t before copying it to userspace. There is a typo in the case that we have 4 words to copy, meaning that we corrupt the compat_sigset_t. It appears that _NSIG_WORDS can't be greater than 2 at the moment so this code is probably always optimised away anyway. Signed-off-by: Will Deacon Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed