Re: [PATCH rtems-docs] c-user/chains: Correct iteration example code

2023-03-08 Thread Chris Johns
On 9/3/2023 7:22 am, Kinsey Moore wrote: > On Wed, Mar 8, 2023 at 3:47 PM Chris Johns > wrote: > On 9/3/2023 5:40 am, Kinsey Moore wrote: > > Casting the node returned by rtems_chain_head is incorrect. That node is > > owned by the control structure and use of

Re: [PATCH rtems-docs] c-user/chains: Correct iteration example code

2023-03-08 Thread Kinsey Moore
On Wed, Mar 8, 2023 at 3:47 PM Chris Johns wrote: > > > On 9/3/2023 5:40 am, Kinsey Moore wrote: > > 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. > > --- > > c-user/chains.rs

Re: [PATCH rtems-docs] c-user/chains: Correct iteration example code

2023-03-08 Thread Chris Johns
On 9/3/2023 5:40 am, Kinsey Moore wrote: > 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. > --- > c-user/chains.rst | 4 > 1 file changed, 4 insertions(+) > > diff --git a/c

[PATCH rtems-docs] c-user/chains: Correct iteration example code

2023-03-08 Thread Kinsey Moore
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. --- c-user/chains.rst | 4 1 file changed, 4 insertions(+) diff --git a/c-user/chains.rst b/c-user/chains.rst index f518ef4..e791d10