lib/genalloc: fix the overflow when size is too big
[linux-2.6-microblaze.git] / crypto / api.c
index 5d8fe60..ed08cbd 100644 (file)
@@ -571,7 +571,7 @@ void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm)
                alg->cra_exit(tfm);
        crypto_exit_ops(tfm);
        crypto_mod_put(alg);
-       kzfree(mem);
+       kfree_sensitive(mem);
 }
 EXPORT_SYMBOL_GPL(crypto_destroy_tfm);