Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24 /crypto/cryptd.c

Filename:/crypto/cryptd.c
Lines Added:3
Lines Deleted:4
Also changed in: (Previous) 2.6.24-rc8  2.6.24-rc7  2.6.24-rc6  2.6.24-rc5  2.6.24-rc4  2.6.24-rc3 
(Following) 2.6.24-git1  2.6.24-git2  2.6.24-git3  2.6.24-git4  2.6.24-git5  2.6.24-git6 

Location
[  2.6.24
  [  crypto
     o  cryptd.c

Patch

diff --git a/crypto/cryptd.c b/crypto/cryptd.c
index ac6dce2..8bf2da8 100644
--- a/crypto/cryptd.c
+++ b/crypto/cryptd.c
@@ -131,7 +131,7 @@ static int cryptd_blkcipher_enqueue(struct ablkcipher_request *req,
    req->base.complete = complete;
 
    spin_lock_bh(&state->lock);
-   err = ablkcipher_enqueue_request(crypto_ablkcipher_alg(tfm), req);
+   err = ablkcipher_enqueue_request(&state->queue, req);
    spin_unlock_bh(&state->lock);
 
    wake_up_process(state->task);
@@ -173,7 +173,8 @@ static void cryptd_blkcipher_exit_tfm(struct crypto_tfm *tfm)
    int active;
 
    mutex_lock(&state->mutex);
-   active = ablkcipher_tfm_in_queue(__crypto_ablkcipher_cast(tfm));
+   active = ablkcipher_tfm_in_queue(&state->queue,
+                __crypto_ablkcipher_cast(tfm));
    mutex_unlock(&state->mutex);
 
    BUG_ON(active);
@@ -251,8 +252,6 @@ static struct crypto_instance *cryptd_alloc_blkcipher(
    inst->alg.cra_ablkcipher.encrypt = cryptd_blkcipher_encrypt_enqueue;
    inst->alg.cra_ablkcipher.decrypt = cryptd_blkcipher_decrypt_enqueue;
 
-   inst->alg.cra_ablkcipher.queue = &state->queue;
-
 out_put_alg:
    crypto_mod_put(alg);
    return inst;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.