On Wed, Apr 22, 2015 at 03:53:34PM +0800, [email protected] wrote:
> From: Li RongQing <[email protected]>
> 
> 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 <[email protected]>
> Signed-off-by: Li RongQing <[email protected]>

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 <[email protected]>
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to