i40iw: Replace list_for_each_entry macro with safe version
authorMustafa Ismail <mustafa.ismail@intel.com>
Wed, 30 Nov 2016 21:08:34 +0000 (15:08 -0600)
committerDoug Ledford <dledford@redhat.com>
Mon, 5 Dec 2016 21:09:41 +0000 (16:09 -0500)
commita05e15135b67d71f30f70ab45dede4706f988439
treec9e746b6b5242d629512fb41533e8c322f9129da
parente5e74b61b16503acbd914f673b783fa2a1532a64
i40iw: Replace list_for_each_entry macro with safe version

Use list_for_each_entry_safe macro for the IPv6 addr list
as IPv6 addresses can be deleted while going through the
list.

Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_cm.c
drivers/infiniband/hw/i40iw/i40iw_main.c