]> Pileus Git - ~andy/linux/blobdiff - crypto/api.c
V4L/DVB (4215): Make VIDEO_CX88_BLACKBIRD a separate build option
[~andy/linux] / crypto / api.c
index 34e02caffc2a3307db3cfe99a47dd24e846e4724..80bba637fba7c1d325e0718bcfa800659f46251e 100644 (file)
@@ -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))