diff options
Diffstat (limited to 'crypto/ccm.c')
-rw-r--r-- | crypto/ccm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ccm.c b/crypto/ccm.c index c36d654cf56a..32fe1bb5decb 100644 --- a/crypto/ccm.c +++ b/crypto/ccm.c | |||
@@ -216,12 +216,12 @@ static void get_data_to_compute(struct crypto_cipher *tfm, | |||
216 | scatterwalk_start(&walk, sg_next(walk.sg)); | 216 | scatterwalk_start(&walk, sg_next(walk.sg)); |
217 | n = scatterwalk_clamp(&walk, len); | 217 | n = scatterwalk_clamp(&walk, len); |
218 | } | 218 | } |
219 | data_src = scatterwalk_map(&walk, 0); | 219 | data_src = scatterwalk_map(&walk); |
220 | 220 | ||
221 | compute_mac(tfm, data_src, n, pctx); | 221 | compute_mac(tfm, data_src, n, pctx); |
222 | len -= n; | 222 | len -= n; |
223 | 223 | ||
224 | scatterwalk_unmap(data_src, 0); | 224 | scatterwalk_unmap(data_src); |
225 | scatterwalk_advance(&walk, n); | 225 | scatterwalk_advance(&walk, n); |
226 | scatterwalk_done(&walk, 0, len); | 226 | scatterwalk_done(&walk, 0, len); |
227 | if (len) | 227 | if (len) |