Hi Chris, On 11 July 2017 at 21:53, Christopher Li <sparse@xxxxxxxxxxx> wrote: > Ping, Any taker want to review or suggest alternative > way to fix the nested loop delete bug? > >> Instead of marking the entry deleted. I just use a duplicate >> version of the list->list[] when doing the loop. It will have >> unwanted effect that iterator will issue some ptr are already >> deleted. Other than that, it is very straight forward. >> I think that duplicating a list because that list is being modified is quite a sensible thing to do. My only suggestion would be that perhaps you could have a dup() step that is separate so that you can use the normal iterator macro after duplicating. Regards Dibyendu -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html