[XFRM]: Clearing xfrm_policy_count[] to zero during flush is incorrect.
authorDavid S. Miller <davem@sunset.davemloft.net>
Tue, 3 Oct 2006 23:00:26 +0000 (16:00 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 4 Oct 2006 07:31:02 +0000 (00:31 -0700)
When we flush policies, we do a type match so we might not
actually delete all policies matching a certain direction.

So keep track of how many policies we actually kill and
subtract that number from xfrm_policy_count[dir] at the
end.

Based upon a patch by Masahide NAKAMURA.

Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found