Skip to content

Commit b8530b5

Browse files
committed
Added missing check for TX_QUEUE_MESSAGE_MAX_SIZE.
1 parent 1f59529 commit b8530b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common_smp/src/txe_queue_create.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ TX_THREAD *thread_ptr;
178178
status = TX_SIZE_ERROR;
179179
}
180180

181-
/* Check for an invalid message size - greater than 16. */
182-
else if (message_size > TX_16_ULONG)
181+
/* Check for an invalid message sizegreater than TX_QUEUE_MESSAGE_MAX_SIZE 16 by default. */
182+
else if (message_size > TX_QUEUE_MESSAGE_MAX_SIZE)
183183
{
184184

185185
/* Invalid message size specified. */

0 commit comments

Comments
 (0)