]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8188eu: use safe iterator in rtl8188eu_xmitframe_complete()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 7 Jun 2021 18:18:25 +0000 (21:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 12:29:01 +0000 (14:29 +0200)
commit9ad5ac0954823625488279c918d66aa39f779780
tree255a01dacec2b3aca3a550c3b4f3913d645587d4
parenta6bd0d26fee7b807c69df0b95b91186acc1c9166
staging: rtl8188eu: use safe iterator in rtl8188eu_xmitframe_complete()

This loop calls rtw_free_xmitframe(pxmitpriv, pxmitframe) which removes
"pxmitframe" (our list iterator) from the list.  So to prevent a forever
loop we need to use a safe list iterator.

Fixes: e20fe8910cbb ("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/YL5i8W7BNla2DlrW@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c