summaryrefslogtreecommitdiffstats
path: root/crypto/api.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-06 21:42:07 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2006-03-21 20:14:08 +1100
commitbbeb563f7bb5e703e4d60c18bed81c987781343f (patch)
tree681d7b0b923e71e7ad38c7b41a6de2b72cce3f21 /crypto/api.c
parentf10b7897ee29649fa7f0ccdc8d859ccd6ce7dbfd (diff)
downloadlinux-stable-bbeb563f7bb5e703e4d60c18bed81c987781343f.tar.gz
linux-stable-bbeb563f7bb5e703e4d60c18bed81c987781343f.tar.bz2
linux-stable-bbeb563f7bb5e703e4d60c18bed81c987781343f.zip
[CRYPTO] all: Use kzalloc where possible
this patch converts crypto/ to kzalloc usage. Compile tested with allyesconfig. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/api.c')
-rw-r--r--crypto/api.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/api.c b/crypto/api.c
index 34e02caffc2a..80bba637fba7 100644
--- a/crypto/api.c
+++ b/crypto/api.c
@@ -179,12 +179,10 @@ struct crypto_tfm *crypto_alloc_tfm(const char *name, u32 flags)
goto out;
tfm_size = sizeof(*tfm) + crypto_ctxsize(alg, flags);
- tfm = kmalloc(tfm_size, GFP_KERNEL);
+ tfm = kzalloc(tfm_size, GFP_KERNEL);
if (tfm == NULL)
goto out_put;
- memset(tfm, 0, tfm_size);
-
tfm->__crt_alg = alg;
if (crypto_init_flags(tfm, flags))