aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/scatterwalk.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-12-05 04:59:25 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-10 16:16:33 -0500
commitb2ab4a57b018aafbba35bff088218f5cc3d2142e (patch)
treea46c5bd42927c24c69f0786be2651ff3fba6c10e /crypto/scatterwalk.c
parent42c271c6c538857cb13c5ead5184d264d745f675 (diff)
[CRYPTO] scatterwalk: Restore custom sg chaining for now
Unfortunately the generic chaining hasn't been ported to all architectures yet, and notably not s390. So this patch restores the chainging that we've been using previously which does work everywhere. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/scatterwalk.c')
-rw-r--r--crypto/scatterwalk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/scatterwalk.c b/crypto/scatterwalk.c
index 12d19019e178..297e19d13c4e 100644
--- a/crypto/scatterwalk.c
+++ b/crypto/scatterwalk.c
@@ -61,7 +61,7 @@ static void scatterwalk_pagedone(struct scatter_walk *walk, int out,
61 walk->offset += PAGE_SIZE - 1; 61 walk->offset += PAGE_SIZE - 1;
62 walk->offset &= PAGE_MASK; 62 walk->offset &= PAGE_MASK;
63 if (walk->offset >= walk->sg->offset + walk->sg->length) 63 if (walk->offset >= walk->sg->offset + walk->sg->length)
64 scatterwalk_start(walk, sg_next(walk->sg)); 64 scatterwalk_start(walk, scatterwalk_sg_next(walk->sg));
65 } 65 }
66} 66}
67 67
@@ -112,7 +112,7 @@ void scatterwalk_map_and_copy(void *buf, struct scatterlist *sg,
112 break; 112 break;
113 113
114 offset += sg->length; 114 offset += sg->length;
115 sg = sg_next(sg); 115 sg = scatterwalk_sg_next(sg);
116 } 116 }
117 117
118 scatterwalk_advance(&walk, start - offset); 118 scatterwalk_advance(&walk, start - offset);