On Wed, Apr 22, 2015 at 03:53:34PM +0800, roy.qing...@gmail.com wrote:
> From: Li RongQing <roy.qing...@gmail.com>
> 
> If the walk from input is not empty, the following loop should start from
> the walk->next, since walk is list header, and the last policy in previours
> loop is connected walk tailor by list_move_tail()
> 
> Fixes: 12a169e7d8f(ipsec: Put dumpers on the dump list)
> Cc: Herbert Xu <herb...@gondor.apana.org.au>
> Signed-off-by: Li RongQing <roy.qing...@gmail.com>

This is not a bug fix but an optimisation.  The walker entries are
all marked as dead and will be skipped by the loop.

However, I don't see anything wrong with this optimisation.

Cheers,
-- 
Email: Herbert Xu <herb...@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to