qed: Fix to use list_for_each_entry_safe() when delete items
Orabug:
25477939
Since we will remove items off the list using list_del() we need
to use a safe version of the list_for_each_entry() macro aptly named
list_for_each_entry_safe().
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Yuval Mintz <Yuval.Mintz@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit
88a2428b83db4328e69d1c0e2f7364041b8045bf)
Signed-off-by: Brian Maly <brian.maly@oracle.com>