core: make mbox_post()/__sem_down_slow() check if valid
authorGene Cumm <gene.cumm@gmail.com>
Sat, 3 Aug 2013 20:01:28 +0000 (16:01 -0400)
committerGene Cumm <gene.cumm@gmail.com>
Sat, 3 Aug 2013 20:01:28 +0000 (16:01 -0400)
commitceb14335790f70378dddfbf0202d2bcda0c54a03
tree3bf1c6a16c5b5493444839db54846e21ac33074f
parentdc3059be195f0b1c878273f648dcaf1b45c5a860
core: make mbox_post()/__sem_down_slow() check if valid

If the mailbox/semaphore is invalid, disallow additions.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
core/thread/mbox.c
core/thread/semaphore.c