提交 de18cd4b 编写于 作者: E Eric Dumazet 提交者: Herbert Xu

crypto: lzo - use kvfree() helper

kvfree() helper is now available, use it instead of open code it.
Signed-off-by: NEric Dumazet <edumazet@google.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 5e50d43d
......@@ -45,10 +45,7 @@ static void lzo_exit(struct crypto_tfm *tfm)
{
struct lzo_ctx *ctx = crypto_tfm_ctx(tfm);
if (is_vmalloc_addr(ctx->lzo_comp_mem))
vfree(ctx->lzo_comp_mem);
else
kfree(ctx->lzo_comp_mem);
kvfree(ctx->lzo_comp_mem);
}
static int lzo_compress(struct crypto_tfm *tfm, const u8 *src,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册