diff options
-rw-r--r-- | sys/kern/kern_kse.c | 4 | ||||
-rw-r--r-- | sys/kern/kern_thread.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index d410785..aa96b4e 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -1600,8 +1600,8 @@ thread_userret(struct thread *td, struct trapframe *frame) if ((kg->kg_completed == NULL) && (td->td_upcall->ku_flags & KUF_DOUPCALL) == 0) { thread_update_usr_ticks(td, 0); - if (kg->kg_completed || - (td->td_upcall->ku_flags & KUF_DOUPCALL)) { + if (!(kg->kg_completed || + (td->td_upcall->ku_flags & KUF_DOUPCALL))) { td->td_mailbox = NULL; return (0); } diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index d410785..aa96b4e 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1600,8 +1600,8 @@ thread_userret(struct thread *td, struct trapframe *frame) if ((kg->kg_completed == NULL) && (td->td_upcall->ku_flags & KUF_DOUPCALL) == 0) { thread_update_usr_ticks(td, 0); - if (kg->kg_completed || - (td->td_upcall->ku_flags & KUF_DOUPCALL)) { + if (!(kg->kg_completed || + (td->td_upcall->ku_flags & KUF_DOUPCALL))) { td->td_mailbox = NULL; return (0); } |