staging: rtl8723bs: use list_for_each_safe in loops deleting iterated items
Fix some beautified loops over linked lists. Use list_for_each_safe on loops which could delete objects in the list. Fixes: b3cd518c ("staging: rtl8723bs: Use list iterators and helpers") Suggested-by:Guenter Roeck <linux@roeck-us.net> Tested-by:
Fabio Aiuto <fabioaiuto83@gmail.com> Reviewed-by:
Guenter Roeck <linux@roeck-us.net> Reviewed-by:
Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by:
Fabio Aiuto <fabioaiuto83@gmail.com> Link: https://lore.kernel.org/r/20210607134618.11237-1-fabioaiuto83@gmail.comSigned-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
Please register or sign in to comment