From: Herbert Xu Date: Mon, 31 Aug 2009 05:56:54 +0000 (+1000) Subject: crypto: api - Do not displace newly registered algorithms X-Git-Tag: v2.6.32-rc1~731^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bf2901669a564b402cd0e40eb3f941c391e64c4;p=pandora-kernel.git crypto: api - Do not displace newly registered algorithms We have a mechanism where newly registered algorithms of a higher priority can displace existing instances that use a different implementation of the same algorithm with a lower priority. Unfortunately the same mechanism can cause a newly registered algorithm to displace itself if it depends on an existing version of the same algorithm. This patch fixes this by keeping all algorithms that the newly reigstered algorithm depends on, thus protecting them from being removed. Signed-off-by: Herbert Xu --- Reading git-diff-tree failed