xiaoxiang781216 commented on code in PR #5070: URL: https://github.com/apache/incubator-nuttx/pull/5070#discussion_r998290536
########## sched/semaphore/sem_holder.c: ########## @@ -707,7 +707,7 @@ void nxsem_add_holder_tcb(FAR struct tcb_s *htcb, FAR sem_t *sem) * inheritance is effectively disabled. */ - if (htcb->flink != NULL && (sem->flags & PRIOINHERIT_FLAGS_DISABLE) == 0) + if (htcb->flink != NULL && (sem->flags & PRIOINHERIT_FLAGS_ENABLE) == 0) Review Comment: ```suggestion if (htcb->flink != NULL && (sem->flags & PRIOINHERIT_FLAGS_ENABLE) != 0) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org