diff options
author | 2008-06-02 15:30:44 -0700 | |
---|---|---|
committer | 2008-06-02 15:30:44 -0700 | |
commit | c3b25b32e8bef526cca748e1ba023c6bdd705a99 (patch) | |
tree | e5dd19611d77689153eea5fdecb1de322623b12d | |
parent | Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2 (diff) | |
parent | [CRYPTO] cts: Init SG tables (diff) | |
download | wireguard-linux-c3b25b32e8bef526cca748e1ba023c6bdd705a99.tar.xz wireguard-linux-c3b25b32e8bef526cca748e1ba023c6bdd705a99.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
[CRYPTO] cts: Init SG tables
-rw-r--r-- | crypto/cts.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/cts.c b/crypto/cts.c index c4e70bfb4970..ccf9c5de3958 100644 --- a/crypto/cts.c +++ b/crypto/cts.c @@ -89,6 +89,9 @@ static int cts_cbc_encrypt(struct crypto_cts_ctx *ctx, if (lastn < 0) return -EINVAL; + sg_init_table(sgsrc, 1); + sg_init_table(sgdst, 1); + memset(s, 0, sizeof(s)); scatterwalk_map_and_copy(s, src, offset, nbytes, 0); @@ -172,6 +175,9 @@ static int cts_cbc_decrypt(struct crypto_cts_ctx *ctx, if (lastn < 0) return -EINVAL; + sg_init_table(sgsrc, 1); + sg_init_table(sgdst, 1); + scatterwalk_map_and_copy(s, src, offset, nbytes, 0); lcldesc.tfm = ctx->child; |