projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e50d43
)
crypto: lzo - use kvfree() helper
author
Eric Dumazet
<edumazet@google.com>
Tue, 24 Jun 2014 08:23:45 +0000
(
01:23
-0700)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 25 Jun 2014 13:51:53 +0000
(21:51 +0800)
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>
crypto/lzo.c
patch
|
blob
|
history
diff --git
a/crypto/lzo.c
b/crypto/lzo.c
index 252e791d0ccce9dfbd6e0f30d557b543836871c2..a8ff2f778dc494ba909b3f4705db6512d296f0e5 100644
(file)
--- 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,