aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r--crypto/tcrypt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 577a3aff3113..53f4ee804bdb 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -415,12 +415,12 @@ out:
415static int test_cipher_jiffies(struct crypto_tfm *tfm, int enc, char *p, 415static int test_cipher_jiffies(struct crypto_tfm *tfm, int enc, char *p,
416 int blen, int sec) 416 int blen, int sec)
417{ 417{
418 struct scatterlist sg[8]; 418 struct scatterlist sg[1];
419 unsigned long start, end; 419 unsigned long start, end;
420 int bcount; 420 int bcount;
421 int ret; 421 int ret;
422 422
423 sg_set_buf(&sg[0], p, blen); 423 sg_set_buf(sg, p, blen);
424 424
425 for (start = jiffies, end = start + sec * HZ, bcount = 0; 425 for (start = jiffies, end = start + sec * HZ, bcount = 0;
426 time_before(jiffies, end); bcount++) { 426 time_before(jiffies, end); bcount++) {
@@ -441,12 +441,12 @@ static int test_cipher_jiffies(struct crypto_tfm *tfm, int enc, char *p,
441static int test_cipher_cycles(struct crypto_tfm *tfm, int enc, char *p, 441static int test_cipher_cycles(struct crypto_tfm *tfm, int enc, char *p,
442 int blen) 442 int blen)
443{ 443{
444 struct scatterlist sg[8]; 444 struct scatterlist sg[1];
445 unsigned long cycles = 0; 445 unsigned long cycles = 0;
446 int ret = 0; 446 int ret = 0;
447 int i; 447 int i;
448 448
449 sg_set_buf(&sg[0], p, blen); 449 sg_set_buf(sg, p, blen);
450 450
451 local_bh_disable(); 451 local_bh_disable();
452 local_irq_disable(); 452 local_irq_disable();