projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'fix/hda' into for-linus
[linux-2.6-block.git]
/
crypto
/
shash.c
diff --git
a/crypto/shash.c
b/crypto/shash.c
index 50d69a4e4b61a7a0dfa93b73f08ed42842d0288c..c9df367332ffd1f122b1d675bcb434b936848bc4 100644
(file)
--- a/
crypto/shash.c
+++ b/
crypto/shash.c
@@
-55,6
+55,9
@@
int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key,
struct shash_alg *shash = crypto_shash_alg(tfm);
unsigned long alignmask = crypto_shash_alignmask(tfm);
+ if (!shash->setkey)
+ return -ENOSYS;
+
if ((unsigned long)key & alignmask)
return shash_setkey_unaligned(tfm, key, keylen);