Skip to content
  • Kinsey Moore's avatar
    c-user/chains: Correct iteration example code · fd6d8620
    Kinsey Moore authored and Joel Sherrill's avatar Joel Sherrill committed
    Casting the node returned by rtems_chain_head is incorrect. That node is
    owned by the control structure and use of it post-cast could cause
    memory corruption. Instead, use rtems_chain_first which returns the
    node after the head node. This also corrects node->next to
    rtems_chain_next(node) which makes better use of the API.
    fd6d8620