Rewrote list_for_each_entry_safe