sparc: Use set_current_blocked()
commitfaddf598f0ba98ba329bb83acad51aea40313c2a
authorMatt Fleming <matt.fleming@intel.com>
Thu, 11 Aug 2011 13:57:02 +0000 (11 14:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Oct 2011 19:25:28 +0000 (12 12:25 -0700)
treefad64797c8240759caa11b032b8016947f29715f
parentf22ed71cd60210d2f476986c0266004e4db45f34
sparc: Use set_current_blocked()

As described in e6fa16ab ("signal: sigprocmask() should do
retarget_shared_pending()") the modification of current->blocked is
incorrect as we need to check whether the signal we're about to block
is pending in the shared queue.

Cc: Oleg Nesterov <oleg@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/signal32.c
arch/sparc/kernel/signal_32.c
arch/sparc/kernel/signal_64.c