diff options
Diffstat (limited to 'crypto/hash.c')
-rw-r--r-- | crypto/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/hash.c b/crypto/hash.c index 4d75ca7b57b2..4fd470bd729b 100644 --- a/crypto/hash.c +++ b/crypto/hash.c | |||
@@ -40,7 +40,7 @@ static int hash_setkey_unaligned(struct crypto_hash *crt, const u8 *key, | |||
40 | alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); | 40 | alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); |
41 | memcpy(alignbuffer, key, keylen); | 41 | memcpy(alignbuffer, key, keylen); |
42 | ret = alg->setkey(crt, alignbuffer, keylen); | 42 | ret = alg->setkey(crt, alignbuffer, keylen); |
43 | memset(alignbuffer, 0, absize); | 43 | memset(alignbuffer, 0, keylen); |
44 | kfree(buffer); | 44 | kfree(buffer); |
45 | return ret; | 45 | return ret; |
46 | } | 46 | } |