From: Eric Dumazet Date: Tue, 24 Jun 2014 08:23:45 +0000 (-0700) Subject: crypto: lzo - use kvfree() helper X-Git-Tag: v3.17-rc1~151^2~59 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=de18cd4b71acecbd1278a7bb79340cbf885212aa;p=linux.git crypto: lzo - use kvfree() helper kvfree() helper is now available, use it instead of open code it. Signed-off-by: Eric Dumazet Signed-off-by: Herbert Xu --- 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,