commit | 051b6390817095b9f407c1486e5f296ccdd08b4f | [log] [tgz] |
---|---|---|
author | Daniel Mentz <danielmentz@google.com> | Thu Jan 22 16:29:57 2015 -0800 |
committer | Daniel Mentz <danielmentz@google.com> | Thu Jan 22 17:37:34 2015 -0800 |
tree | 066345818880ac3cabe100b31e1e2e8291094c2a | |
parent | 41da9195dbb46778fb19ef95010bd592bd056af8 [diff] |
Use list_for_each_safe() to iter over l2flow_table abm_br_even() iterates over elements in l2flow_table[i]. Under certain conditions, the loop body calls list_del() on the current element which must not be done if list_for_each() is used. Let's use list_for_each_safe() instead as it saves pointers to the previous and next element. Therefore, the current element can be deleted safely. Change-Id: I5f917098a743d2f1b88b01c9ec20f70bb6d6de17