X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Ftcrypt.c;h=8eaa5aa210b0d1983f40d57584c52f04889a88e4;hb=37c70d0d09747a958ec50aeb11ed1bf896da028c;hp=f5e9da319ece70cf6823a94947c3ee4f08273d89;hpb=f8abea8f8c24ecdad6d6861bffb912f23f2741cd;p=linux-2.6 diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index f5e9da319e..8eaa5aa210 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -768,7 +768,7 @@ static void test_deflate(void) tv = (void *)tvmem; tfm = crypto_alloc_comp("deflate", 0, CRYPTO_ALG_ASYNC); - if (tfm == NULL) { + if (IS_ERR(tfm)) { printk("failed to load transform for deflate\n"); return; }