Re: [ovs-dev] [PATCH v3 05/17] list: ensure iterator is NULL after pop loop

2022-02-28 Thread Adrian Moreno
On 2/25/22 13:07, Dumitru Ceara wrote: On 2/16/22 15:27, Adrian Moreno wrote: After the loop ends, the iterator is not guaranteed to point to a valid object and should not be used. Make it NULL to avoid undefined behavior. Signed-off-by: Adrian Moreno --- I think this could be squashed

Re: [ovs-dev] [PATCH v3 05/17] list: ensure iterator is NULL after pop loop

2022-02-25 Thread Dumitru Ceara
On 2/16/22 15:27, Adrian Moreno wrote: > After the loop ends, the iterator is not guaranteed to point to a valid > object and should not be used. Make it NULL to avoid undefined behavior. > > Signed-off-by: Adrian Moreno > --- I think this could be squashed together with patch 04/17. For the

[ovs-dev] [PATCH v3 05/17] list: ensure iterator is NULL after pop loop

2022-02-16 Thread Adrian Moreno
After the loop ends, the iterator is not guaranteed to point to a valid object and should not be used. Make it NULL to avoid undefined behavior. Signed-off-by: Adrian Moreno --- include/openvswitch/list.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git