]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - kernel/signal.c
signals: sys_ssetmask() uses uninitialized newmask
[~shefty/rdma-dev.git] / kernel / signal.c
index 7aaa51d8e5b8895f047651caa0b021a6e7a88113..9692499c77cf8575494c844b170c1d1aea6d3afd 100644 (file)
@@ -3286,6 +3286,7 @@ SYSCALL_DEFINE1(ssetmask, int, newmask)
        int old = current->blocked.sig[0];
        sigset_t newset;
 
+       siginitset(&newset, newmask);
        set_current_blocked(&newset);
 
        return old;