From: Jesper Juhl Date: Sun, 29 Jan 2012 22:39:22 +0000 (+0100) Subject: crypto: In crypto_add_alg(), 'exact' wants to be initialized to 0 X-Git-Tag: v3.4-rc1~166^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cfdec7a65c98de6637e547a04a33969dc9c61b1;p=pandora-kernel.git crypto: In crypto_add_alg(), 'exact' wants to be initialized to 0 We declare 'exact' without initializing it and then do: [...] if (strlen(p->cru_driver_name)) exact = 1; if (priority && !exact) return -EINVAL; [...] If the first 'if' is not true, then the second will test an uninitialized 'exact'. As far as I can tell, what we want is for 'exact' to be initialized to 0 (zero/false). Signed-off-by: Jesper Juhl Acked-by: Steffen Klassert Signed-off-by: Herbert Xu --- Reading git-diff-tree failed