chMsgSend wakes a receiver thread blocked in CH_STATE_WTMSG via chSchReadyI without first setting tp->u.rdymsg = MSG_OK. This leaves a stale value in rdymsg from a previous operation.
Log in to post a comment.