Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-13344 libcfs: adler32: don't set CRYPTO_TFM_RES_BAD_KEY_LEN
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
linux-crypto-adler.c
diff --git
a/libcfs/libcfs/linux-crypto-adler.c
b/libcfs/libcfs/linux-crypto-adler.c
index
ee47fb5
..
5b21ef7
100644
(file)
--- a/
libcfs/libcfs/linux-crypto-adler.c
+++ b/
libcfs/libcfs/linux-crypto-adler.c
@@
-51,10
+51,9
@@
static int adler32_setkey(struct crypto_shash *hash, const u8 *key,
{
u32 *mctx = crypto_shash_ctx(hash);
- if (keylen != sizeof(u32)) {
- crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN);
+ if (keylen != sizeof(u32))
return -EINVAL;
- }
+
*mctx = *(u32 *)key;
return 0;
}