staging: rtl8188eu: use safe iterator in rtw_sta_flush
authorMartin Kaiser <martin@kaiser.cx>
Mon, 17 May 2021 20:18:25 +0000 (22:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 15:54:51 +0000 (17:54 +0200)
commit2253748164d8bbe0831710fcd5d4d2c353b04a70
tree48f1ea9278a03f3a119469f0a47b0bbf732e008f
parentb0f2044c61d9ef309252d25d16d6cce6e8fcae6b
staging: rtl8188eu: use safe iterator in rtw_sta_flush

Use list_for_each_entry_safe, we may delete list items while iterating
over the list.

Fixes: 23017c8842d2 ("staging: rtl8188eu: Use list iterators and helpers")
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210517201826.25150-5-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_ap.c