From: Herbert Xu Date: Tue, 26 Jan 2016 16:16:37 +0000 (+0800) Subject: crypto: shash - Fix has_key setting X-Git-Tag: v3.2.78~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91edbdd78ad9ea458b9777353155a2b6c5746346;p=pandora-kernel.git crypto: shash - Fix has_key setting commit 00420a65fa2beb3206090ead86942484df2275f3 upstream. The has_key logic is wrong for shash algorithms as they always have a setkey function. So we should instead be testing against shash_no_setkey. Fixes: a5596d633278 ("crypto: hash - Add crypto_ahash_has_setkey") Reported-by: Stephan Mueller Signed-off-by: Herbert Xu Tested-by: Stephan Mueller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed