diff options
-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) | |||
45 | { | 45 | { |
46 | struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); | 46 | struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); |
47 | 47 | ||
48 | if (is_vmalloc_addr(ctx->lzo_comp_mem)) | 48 | kvfree(ctx->lzo_comp_mem); |
49 | vfree(ctx->lzo_comp_mem); | ||
50 | else | ||
51 | kfree(ctx->lzo_comp_mem); | ||
52 | } | 49 | } |
53 | 50 | ||
54 | static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, | 51 | static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, |