Linux list_for_each_entry() does not neccessarily end with the iterator
NULL (it may be an offset from NULL if the list member is not the first
element of the member struct). Also, initialize the iterator variable
to a sane value.
Reported by: Coverity
CID: 1366940