diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/tcrypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 4b9e23fa4204..1a2800107fc8 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -1155,9 +1155,9 @@ static void test_acipher_speed(const char *algo, int enc, unsigned int secs, | |||
1155 | goto out_free_req; | 1155 | goto out_free_req; |
1156 | } | 1156 | } |
1157 | 1157 | ||
1158 | sg_init_table(sg, TVMEMSIZE); | ||
1159 | |||
1160 | k = *keysize + *b_size; | 1158 | k = *keysize + *b_size; |
1159 | sg_init_table(sg, DIV_ROUND_UP(k, PAGE_SIZE)); | ||
1160 | |||
1161 | if (k > PAGE_SIZE) { | 1161 | if (k > PAGE_SIZE) { |
1162 | sg_set_buf(sg, tvmem[0] + *keysize, | 1162 | sg_set_buf(sg, tvmem[0] + *keysize, |
1163 | PAGE_SIZE - *keysize); | 1163 | PAGE_SIZE - *keysize); |