]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Fix to use list_for_each_entry_safe() when delete items
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 10 Oct 2016 14:08:28 +0000 (14:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 13:57:10 +0000 (09:57 -0400)
commit55d0eb714fa785fe40e5946710bb80702748683d
treeaa5a79a3555a52c5e01aa5c591cde12dc045c153
parent9bf243b2b16feea88fd5eafd4dd4a1b5fc9c28b0
qed: Fix to use list_for_each_entry_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_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>
drivers/net/ethernet/qlogic/qed/qed_ll2.c