Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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,