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

2023-03-09 Thread Chris Johns
On 10/3/2023 10:12 pm, Kinsey Moore wrote: > On Thu, Mar 9, 2023 at 1:01 AM Sebastian Huber > > > wrote: > On 09.03.23 03:33, Kinsey Moore wrote: > > Casting the node returned by rtems_chain_head is incorrect. That node is > > owned by the con

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

2023-03-09 Thread Kinsey Moore
On Thu, Mar 9, 2023 at 1:01 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > > > On 09.03.23 03:33, 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 co

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

2023-03-08 Thread Sebastian Huber
On 09.03.23 03:33, 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 | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a

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

2023-03-08 Thread Chris Johns
Looks good. Thanks Chris On 9/3/2023 11:33 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 | 6 +- > 1 file changed, 5 insert

[PATCH rtems-docs v2] 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 | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/c-user/chains.rst b/c-user/chains.rst index