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

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-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_ap.c