staging: rtl8188eu: use safe iterator in xmit_delivery_enabled_frames()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 7 Jun 2021 18:18:13 +0000 (21:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 12:29:01 +0000 (14:29 +0200)
commit629132b3d523bef7b32657e17c0edc1cdaae7e0a
treed4d7f6f687cebb05abf6b991d50f3606735b60e6
parentc47bcff9ae42c1cb24c828401f2681003b601564
staging: rtl8188eu: use safe iterator in xmit_delivery_enabled_frames()

This loop calls list_del_init(&pxmitframe->list) and "pxmitframe" is the
list iterator so it leads to a forever loop.  We need to use a _safe()
iterator to fix this.

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/YL5i5aVMQ3CZ5wuQ@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_xmit.c