unicore32: Use set_current_blocked()
authorMatt Fleming <matt.fleming@intel.com>
Thu, 11 Aug 2011 13:57:06 +0000 (14:57 +0100)
committerGuan Xuetao <gxt@mprc.pku.edu.cn>
Tue, 10 Jan 2012 02:29:41 +0000 (10:29 +0800)
commit7037bd803e24d4fdaa87f27456e686aafb061277
tree4ca8c8d236244b2446a9aa8c58c7bafcbb5a0389
parenta50e4213e71adc7dde0d514aabd8af7275fee39f
unicore32: 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: Guan Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
arch/unicore32/kernel/signal.c