diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-03-15 19:54:36 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-03-15 19:54:36 +0000 |
commit | 52e98077ee867e31189c43ad592cf97f386cac93 (patch) | |
tree | 20ccd293f27ec39ab1b8b3b8612f7fc0292d76ca /os | |
parent | 82984e1b5543228cfc3bd8bb40aa69046bc613e8 (diff) | |
download | ChibiOS-52e98077ee867e31189c43ad592cf97f386cac93.tar.gz ChibiOS-52e98077ee867e31189c43ad592cf97f386cac93.tar.bz2 ChibiOS-52e98077ee867e31189c43ad592cf97f386cac93.zip |
Fixed bug 3504450.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4039 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/kernel/src/chmboxes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/os/kernel/src/chmboxes.c b/os/kernel/src/chmboxes.c index 86f88dce7..163f93f20 100644 --- a/os/kernel/src/chmboxes.c +++ b/os/kernel/src/chmboxes.c @@ -364,6 +364,7 @@ msg_t chMBFetchI(Mailbox *mbp, msg_t *msgp) { if (chSemGetCounterI(&mbp->mb_fullsem) <= 0)
return RDY_TIMEOUT;
+ chSemFastWaitI(&mbp->mb_fullsem);
*msgp = *mbp->mb_rdptr++;
if (mbp->mb_rdptr >= mbp->mb_top)
mbp->mb_rdptr = mbp->mb_buffer;
|