staging: rtl8188eu: use safe iterator in wakeup_sta_to_xmit()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 7 Jun 2021 18:17:57 +0000 (21:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 12:29:01 +0000 (14:29 +0200)
commitc47bcff9ae42c1cb24c828401f2681003b601564
tree8533cfc81ddc8bb8b89500e1139a4d2976881de9
parente0f489a25a9928da72dbf697ec52e987041c8dd1
staging: rtl8188eu: use safe iterator in wakeup_sta_to_xmit()

These two loops call list_del_init() on the list iterator so they need to
use the _safe() iterator to prevent a forever loop.

Fixes: 23017c8842d2 ("staging: rtl8188eu: Use list iterators and helpers")
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YL5i1ZAAAB4vSWef@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_xmit.c