Skip to content

Commit de18cd4

Browse files
edumazetherbertx
authored andcommitted
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>
1 parent 5e50d43 commit de18cd4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎crypto/lzo.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ static void lzo_exit(struct crypto_tfm *tfm)
4545
{
4646
struct lzo_ctx *ctx = crypto_tfm_ctx(tfm);
4747

48-
if (is_vmalloc_addr(ctx->lzo_comp_mem))
49-
vfree(ctx->lzo_comp_mem);
50-
else
51-
kfree(ctx->lzo_comp_mem);
48+
kvfree(ctx->lzo_comp_mem);
5249
}
5350

5451
static int lzo_compress(struct crypto_tfm *tfm, const u8 *src,

0 commit comments

Comments
 (0)