From: Herbert Xu Date: Wed, 17 Jan 2007 00:52:02 +0000 (-0800) Subject: [IPSEC]: Policy list disorder X-Git-Tag: v2.6.20-rc6~5^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6c7ab55dda3e16ab5a3cf6f39585aee5876ac3a;p=pandora-kernel.git [IPSEC]: Policy list disorder The recent hashing introduced an off-by-one bug in policy list insertion. Instead of adding after the last entry with a lesser or equal priority, we're adding after the successor of that entry. This patch fixes this and also adds a warning if we detect a duplicate entry in the policy list. This should never happen due to this if clause. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed