]> git.baikalelectronics.ru Git - kernel.git/commit
signals: sys_ssetmask() uses uninitialized newmask
authorOleg Nesterov <oleg@redhat.com>
Sat, 5 Jan 2013 18:13:13 +0000 (19:13 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 6 Jan 2013 03:34:54 +0000 (19:34 -0800)
commit538160ded3271142594d3f9e29ac06dd24efdfc7
treece8657276d09d639a4c069b9d39f8459542c29f3
parent522c6500abe0c86a4ad6c0acd16395c3bb3afe39
signals: sys_ssetmask() uses uninitialized newmask

Commit 3c41aa3cd26a ("most of set_current_blocked() callers want
SIGKILL/SIGSTOP removed from set") removed the initialization of newmask
by accident, causing ltp to complain like this:

  ssetmask01    1  TFAIL  :  sgetmask() failed: TEST_ERRNO=???(0): Success

Restore the proper initialization.

Reported-and-tested-by: CAI Qian <caiqian@redhat.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: stable@kernel.org # v3.5+
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/signal.c