summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-11-28 16:36:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-11-28 16:36:31 +0000
commit3d83ae583c5be8d499374bcbd7a6d801ebffbec3 (patch)
tree5b7af4a1e8d0ff6454e8cfb34fbc1b82272c0019 /cpukit/score/src
parentHousekeeping. (diff)
downloadrtems-3d83ae583c5be8d499374bcbd7a6d801ebffbec3.tar.bz2
2011-11-28 Werner Almesberger <werner@almesberger.net>
PR 1961/cpukit * score/src/coremsgsubmit.c: Close window caused by using message pending count rather than directly obtaining unused buffer.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/coremsgsubmit.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/cpukit/score/src/coremsgsubmit.c b/cpukit/score/src/coremsgsubmit.c
index c67157dc44..9d4b68d5c0 100644
--- a/cpukit/score/src/coremsgsubmit.c
+++ b/cpukit/score/src/coremsgsubmit.c
@@ -102,21 +102,9 @@ CORE_message_queue_Status _CORE_message_queue_Submit(
* No one waiting on the message queue at this time, so attempt to
* queue the message up for a future receive.
*/
- if ( the_message_queue->number_of_pending_messages <
- the_message_queue->maximum_pending_messages ) {
-
- the_message =
- _CORE_message_queue_Allocate_message_buffer( the_message_queue );
-
- #if defined(RTEMS_DEBUG)
- /*
- * NOTE: If the system is consistent, this error should never occur.
- */
-
- if ( !the_message )
- return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED;
- #endif
-
+ the_message =
+ _CORE_message_queue_Allocate_message_buffer( the_message_queue );
+ if ( the_message ) {
_CORE_message_queue_Copy_buffer(
buffer,
the_message->Contents.buffer,