[PATCHv2] fix broken list iteration in clear_child_for_cleanup

2012-09-11 Thread David Gould
We iterate through the list of children to cleanup, but do not keep our last pointer up to date. As a result, we may end up cutting off part of the list instead of removing a single element. Iterate through children_to_clean using 'next' fields but with an extra level of indirection. This allows

Re: [PATCHv2] fix broken list iteration in clear_child_for_cleanup

2012-09-11 Thread Junio C Hamano
Thanks. -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html