On 01/28/15 at 01:22pm, Ben Pfaff wrote:
> Are you sure?  What *gms points to, that is, **gms, is freed, but *gms
> should still point to the same location.  list_moved() never
> dereferences 'orig', only compares it against list->next.  In a very
> language-lawyer way, working with a pointer to freed memory may be
> technically "undefined behavior", but I don't know of bad effects in
> practice.

What Ben proposed is definitely fine. It's like a NULL check except
that NULL is not 0x0 but something else ;-)
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to