Re: [PATCH v2] qed: Fix to use list_for_each_entry_safe() when delete items

2016-10-13 Thread David Miller
From: Wei Yongjun Date: Mon, 10 Oct 2016 14:08:28 + > From: Wei Yongjun > > 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 > Acked-by: Yuva

[PATCH v2] qed: Fix to use list_for_each_entry_safe() when delete items

2016-10-10 Thread Wei Yongjun
From: Wei Yongjun 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 Acked-by: Yuval Mintz --- v1 -> v2: use tmp_buffer instead of tmp --- drivers/net/ethe