summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/geode-aes.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2010-02-04 01:39:13 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2010-02-04 01:39:13 +0100
commite054f1647162d7098a9ff619405a72bd7c417213 (patch)
tree0a8cdd87ee5bbe0e2058a96415c785f7a6e1e478 /drivers/crypto/geode-aes.c
parentcrypto: md5 - Add export support (diff)
downloadlinux-e054f1647162d7098a9ff619405a72bd7c417213.tar.xz
linux-e054f1647162d7098a9ff619405a72bd7c417213.zip
crypto: geode-aes - Fix cip/blk confusion
a crypto_cipher cip member was set where a crypto_cipher blk members should have been. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/geode-aes.c')
-rw-r--r--drivers/crypto/geode-aes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index 03e71b1a5128..c7a5a43ba691 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -141,7 +141,7 @@ static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key,
ret = crypto_cipher_setkey(op->fallback.cip, key, len);
if (ret) {
tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK;
- tfm->crt_flags |= (op->fallback.blk->base.crt_flags & CRYPTO_TFM_RES_MASK);
+ tfm->crt_flags |= (op->fallback.cip->base.crt_flags & CRYPTO_TFM_RES_MASK);
}
return ret;
}