qed: Fix to use list_for_each_entry_safe() when delete items
authorWei Yongjun <[email protected]>
Mon, 10 Oct 2016 14:08:28 +0000 (14:08 +0000)
committerDavid S. Miller <[email protected]>
Thu, 13 Oct 2016 13:57:10 +0000 (09:57 -0400)
commit88a2428b83db4328e69d1c0e2f7364041b8045bf
treeaa5a79a3555a52c5e01aa5c591cde12dc045c153
parent1e09c106a44c2b2685a77a1ef27951381c9fcd23
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 <[email protected]>
Acked-by: Yuval Mintz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/qlogic/qed/qed_ll2.c