summaryrefslogtreecommitdiff
path: root/crypto/scatterwalk.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-11-21 16:26:19 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2016-11-22 15:02:25 +0800
commitc24d856ab6af7c070faf98f3e4db107d5f5e0568 (patch)
tree48aeaa6622d53defd1d58db3b49e77c37b983051 /crypto/scatterwalk.c
parent82b0bae9ba1105ce315d45d8436dfd03b4853d23 (diff)
downloadlinux-crypto-c24d856ab6af7c070faf98f3e4db107d5f5e0568.tar.gz
linux-crypto-c24d856ab6af7c070faf98f3e4db107d5f5e0568.zip
crypto: scatterwalk - Remove unnecessary aliasing check in map_and_copy
The aliasing check in map_and_copy is no longer necessary because the IPsec ESP code no longer provides an IV that points into the actual request data. As this check is now triggering BUG checks due to the vmalloced stack code, I'm removing it. Reported-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--crypto/scatterwalk.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/scatterwalk.c b/crypto/scatterwalk.c
index 52ce17a3..c16c94f8 100644
--- a/crypto/scatterwalk.c
+++ b/crypto/scatterwalk.c
@@ -68,10 +68,6 @@ void scatterwalk_map_and_copy(void *buf, struct scatterlist *sg,
sg = scatterwalk_ffwd(tmp, sg, start);
- if (sg_page(sg) == virt_to_page(buf) &&
- sg->offset == offset_in_page(buf))
- return;
-
scatterwalk_start(&walk, sg);
scatterwalk_copychunks(buf, &walk, nbytes, out);
scatterwalk_done(&walk, out, 0);