summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/linux_signal.c')
-rw-r--r--sys/compat/linux/linux_signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_signal.c b/sys/compat/linux/linux_signal.c
index 4eb92e467550..09b98a30e271 100644
--- a/sys/compat/linux/linux_signal.c
+++ b/sys/compat/linux/linux_signal.c
@@ -252,7 +252,7 @@ linux_do_sigprocmask(struct thread *td, int how, l_sigset_t *new,
} else
nmaskp = NULL;
error = kern_sigprocmask(td, how, nmaskp, &omask, 0);
- if (error != 0 && old != NULL)
+ if (error == 0 && old != NULL)
bsd_to_linux_sigset(&omask, old);
return (error);