projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
693b549
)
crypto: scatterwalk - Add missing sg_init_table to scatterwalk_ffwd
author
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 27 May 2015 06:37:27 +0000
(14:37 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 28 May 2015 03:23:17 +0000
(11:23 +0800)
We need to call sg_init_table as otherwise the first entry may
inadvertently become the last.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/scatterwalk.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/scatterwalk.c
b/crypto/scatterwalk.c
index 8690324d3aefdcbf4ab428b26e56efe25792726b..2ef9cbbc5dbf326904bac71359e559402b1cd35b 100644
(file)
--- a/
crypto/scatterwalk.c
+++ b/
crypto/scatterwalk.c
@@
-158,6
+158,7
@@
struct scatterlist *scatterwalk_ffwd(struct scatterlist dst[2],
src = sg_next(src);
}
+ sg_init_table(dst, 2);
sg_set_page(dst, sg_page(src), src->length - len, src->offset + len);
scatterwalk_crypto_chain(dst, sg_next(src), 0, 2);