forked from Imagelibrary/rtems
score: Assert proper node size
This commit is contained in:
@@ -19,10 +19,9 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/system.h>
|
||||
#include <rtems/score/address.h>
|
||||
#include <rtems/score/chainimpl.h>
|
||||
#include <rtems/score/isr.h>
|
||||
#include <rtems/score/address.h>
|
||||
#include <rtems/score/assert.h>
|
||||
|
||||
void _Chain_Initialize(
|
||||
Chain_Control *the_chain,
|
||||
@@ -37,6 +36,8 @@ void _Chain_Initialize(
|
||||
Chain_Node *current = head;
|
||||
Chain_Node *next = starting_address;
|
||||
|
||||
_Assert( node_size >= sizeof( *next ) );
|
||||
|
||||
head->previous = NULL;
|
||||
|
||||
while ( count-- ) {
|
||||
|
||||
Reference in New Issue
Block a user