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 840ab8be0b96..83307420d31c 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -749,7 +749,7 @@ static void test_deflate(void)
749{ 749{
750 unsigned int i; 750 unsigned int i;
751 char result[COMP_BUF_SIZE]; 751 char result[COMP_BUF_SIZE];
752 struct crypto_tfm *tfm; 752 struct crypto_comp *tfm;
753 struct comp_testvec *tv; 753 struct comp_testvec *tv;
754 unsigned int tsize; 754 unsigned int tsize;
755 755
@@ -821,7 +821,7 @@ static void test_deflate(void)
821 ilen, dlen); 821 ilen, dlen);
822 } 822 }
823out: 823out:
824 crypto_free_tfm(tfm); 824 crypto_free_comp(tfm);
825} 825}
826 826
827static void test_available(void) 827static void test_available(void)
@@ -830,8 +830,8 @@ static void test_available(void)
830 830
831 while (*name) { 831 while (*name) {
832 printk("alg %s ", *name); 832 printk("alg %s ", *name);
833 printk((crypto_alg_available(*name, 0)) ? 833 printk(crypto_has_alg(*name, 0, CRYPTO_ALG_ASYNC) ?
834 "found\n" : "not found\n"); 834 "found\n" : "not found\n");
835 name++; 835 name++;
836 } 836 }
837} 837}