projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4aaf087
)
crypto: talitos - Correct dst != src case handling
author
Lee Nipper
<lee.nipper@freescale.com>
Thu, 17 Jul 2008 08:22:30 +0000
(16:22 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 17 Jul 2008 08:22:30 +0000
(16:22 +0800)
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>
drivers/crypto/talitos.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/talitos.c
b/drivers/crypto/talitos.c
index 01e6595014eefc4a9f98bcd4a8fef42ee7c34cba..f644fba35c8cc21fc95d521fc9c5e76e36ec69b6 100644
(file)
--- 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;
}
/*