Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2e21630ddc3fb717dc645356b75771c6a52dc627
Commit:     2e21630ddc3fb717dc645356b75771c6a52dc627
Parent:     6e800af233e0bdf108efb7bd23c11ea6fa34cdeb
Author:     Sebastian Siewior <[EMAIL PROTECTED]>
AuthorDate: Sat Nov 10 19:37:49 2007 +0800
Committer:  Herbert Xu <[EMAIL PROTECTED]>
CommitDate: Sun Nov 11 19:03:48 2007 +0800

    [CRYPTO] geode: Fix not inplace encryption
    
    Currently the Geode AES module fails to encrypt or decrypt if
    the coherent bits are not set what is currently the case if the
    encryption does not occur inplace. However, the encryption works
    on my Geode machine _only_ if the coherent bits are always set.
    
    Signed-off-by: Sebastian Siewior <[EMAIL PROTECTED]>
    Acked-by: Jordan Crouse <[EMAIL PROTECTED]>
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
---
 drivers/crypto/geode-aes.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index f9a34ab..711e246 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -110,8 +110,7 @@ geode_aes_crypt(struct geode_aes_op *op)
         * we don't need to worry
         */
 
-       if (op->src == op->dst)
-               flags |= (AES_CTRL_DCA | AES_CTRL_SCA);
+       flags |= (AES_CTRL_DCA | AES_CTRL_SCA);
 
        if (op->dir == AES_DIR_ENCRYPT)
                flags |= AES_CTRL_ENCRYPT;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to