Skip to content

Commit

Permalink
crypto: lzo - use kvfree() helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and herbertx committed Jun 25, 2014
1 parent 5e50d43 commit de18cd4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crypto/lzo.c
Expand Up @@ -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,
Expand Down

0 comments on commit de18cd4

Please sign in to comment.