summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/talitos.c
diff options
context:
space:
mode:
authorLee Nipper <lee.nipper@freescale.com>2008-07-17 10:22:30 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2008-07-17 10:22:30 +0200
commit695ad589698571046d42a4450c2d801486905535 (patch)
treeb5cbb533c8d20842823d73833fe432c4a89562ba /drivers/crypto/talitos.c
parentcrypto: talitos - Remove calls to of_node_put (diff)
downloadlinux-695ad589698571046d42a4450c2d801486905535.tar.xz
linux-695ad589698571046d42a4450c2d801486905535.zip
crypto: talitos - Correct dst != src case handling
Seems that dst == src, but this fixes the logic in case it's not. Signed-off-by: Lee Nipper <lee.nipper@freescale.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/talitos.c')
-rw-r--r--drivers/crypto/talitos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index 01e6595014ee..f644fba35c8c 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -1022,7 +1022,7 @@ static struct ipsec_esp_edesc *ipsec_esp_edesc_alloc(struct aead_request *areq,
dst_nents = src_nents;
} else {
dst_nents = sg_count(areq->dst, areq->cryptlen + ctx->authsize);
- dst_nents = (dst_nents == 1) ? 0 : src_nents;
+ dst_nents = (dst_nents == 1) ? 0 : dst_nents;
}
/*