diff options
author | Eric Dumazet <edumazet@google.com> | 2014-06-24 12:23:45 +0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-06-25 17:51:53 +0400 |
commit | de18cd4b71acecbd1278a7bb79340cbf885212aa (patch) | |
tree | 64881b66f615b3269af3eac6b94189fac89e7048 /crypto | |
parent | 5e50d43d65d4190fb9bb183cc086e356a065cc23 (diff) | |
download | linux-de18cd4b71acecbd1278a7bb79340cbf885212aa.tar.xz |
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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/lzo.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/lzo.c b/crypto/lzo.c index 252e791d0ccc..a8ff2f778dc4 100644 --- a/crypto/lzo.c +++ b/crypto/lzo.c @@ -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, |