From: David S. Miller Date: Tue, 3 Oct 2006 23:00:26 +0000 (-0700) Subject: [XFRM]: Clearing xfrm_policy_count[] to zero during flush is incorrect. X-Git-Tag: v2.6.19-rc1~33^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae8c05779ac2f286b872db9ebea0c3c0a031ad1e;p=pandora-kernel.git [XFRM]: Clearing xfrm_policy_count[] to zero during flush is incorrect. 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 --- Reading git-diff-tree failed