1
0
Fork 0

crypto: lzo - use kvfree() helper

kvfree() helper is now available, use it instead of open code it.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
hifive-unleashed-5.1
Eric Dumazet 2014-06-24 01:23:45 -07:00 committed by Herbert Xu
parent 5e50d43d65
commit de18cd4b71
1 changed files with 1 additions and 4 deletions

View File

@ -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,