Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2a999a3abb2d3885741b09b9d05280db7e757544
Commit:     2a999a3abb2d3885741b09b9d05280db7e757544
Parent:     866cd902e864e9d0e31299efa9d61fc9a9bec315
Author:     Herbert Xu <[EMAIL PROTECTED]>
AuthorDate: Sun Dec 30 20:24:11 2007 +1100
Committer:  Herbert Xu <[EMAIL PROTECTED]>
CommitDate: Fri Jan 11 08:16:59 2008 +1100

    [CRYPTO] tcrypt: Zero axbuf in the right function
    
    The axbuf buffer is used by test_aead and therefore should be zeroed
    there instead of in test_hash.
    
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
---
 crypto/tcrypt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 2b52df7..72073ef 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -172,7 +172,6 @@ static void test_hash(char *algo, struct hash_testvec 
*template,
 
        /* setup the dummy buffer first */
        memset(xbuf, 0, XBUFSIZE);
-       memset(axbuf, 0, XBUFSIZE);
 
        j = 0;
        for (i = 0; i < tcount; i++) {
@@ -350,6 +349,7 @@ static void test_aead(char *algo, int enc, struct 
aead_testvec *template,
 
        printk(KERN_INFO "\ntesting %s %s across pages (chunking)\n", algo, e);
        memset(xbuf, 0, XBUFSIZE);
+       memset(axbuf, 0, XBUFSIZE);
 
        for (i = 0, j = 0; i < tcount; i++) {
                if (aead_tv[i].np) {
-
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