forked from Minki/linux
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>
This commit is contained in:
parent
5e50d43d65
commit
de18cd4b71
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user