From: Tadeusz Struk Date: Mon, 30 Mar 2015 21:25:44 +0000 (-0700) Subject: crypto: algif - use kmalloc instead of kzalloc X-Git-Tag: v4.1-rc1~128^2~92 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=82d929207a11402f9cfe2131013a94939967828a;p=linux.git crypto: algif - use kmalloc instead of kzalloc No need to use kzalloc to allocate sgls as the structure is initialized anyway. Signed-off-by: Tadeusz Struk Signed-off-by: David S. Miller --- diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index 60496d405ebf..2db1eb776932 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c @@ -583,7 +583,7 @@ static int skcipher_recvmsg_async(struct socket *sock, struct msghdr *msg, rsgl = &sreq->first_sgl; list_add_tail(&rsgl->list, &sreq->list); } else { - rsgl = kzalloc(sizeof(*rsgl), GFP_KERNEL); + rsgl = kmalloc(sizeof(*rsgl), GFP_KERNEL); if (!rsgl) { err = -ENOMEM; goto free;