Commit de18cd4b authored by Eric Dumazet's avatar Eric Dumazet Committed by Herbert Xu

crypto: lzo - use kvfree() helper

kvfree() helper is now available, use it instead of open code it.
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment