ibmvnic: fix to use list_for_each_safe() when delete items
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 27 Jun 2016 12:48:53 +0000 (20:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2016 09:23:42 +0000 (05:23 -0400)
commit96183182ad05d1ce31b9048921c12bf4ad621eaf
tree43125d3783d77aad52850bbc6a433100ef66371a
parentb2c1b30e3e6dea37d5a7176bd09cf5967fb43665
ibmvnic: fix to use list_for_each_safe() when delete items

Since we will remove items off the list using list_del() we need
to use a safe version of the list_for_each() macro aptly named
list_for_each_safe().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c