We have to use list_for_each_entry_safe() when moving object from list being iterated.
v2.24.14.6