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

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