diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-02-04 11:39:13 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-02-04 11:39:13 +1100 |
commit | e054f1647162d7098a9ff619405a72bd7c417213 (patch) | |
tree | 0a8cdd87ee5bbe0e2058a96415c785f7a6e1e478 /drivers/crypto | |
parent | 7d6f75eb21b84cdc5dfb09789974f02b42a89058 (diff) | |
download | lwn-e054f1647162d7098a9ff619405a72bd7c417213.tar.gz lwn-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')
-rw-r--r-- | drivers/crypto/geode-aes.c | 2 |
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; } |