diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2015-03-30 17:25:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-01 15:32:35 -0400 |
commit | 82d929207a11402f9cfe2131013a94939967828a (patch) | |
tree | 818f2725e7d0e18c7482f2b9ecf2a465c7603a1d /crypto/algif_skcipher.c | |
parent | bd50752034e4c4847d413e812f554f1bde1e668c (diff) |
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 <tadeusz.struk@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/algif_skcipher.c')
-rw-r--r-- | crypto/algif_skcipher.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
583 | rsgl = &sreq->first_sgl; | 583 | rsgl = &sreq->first_sgl; |
584 | list_add_tail(&rsgl->list, &sreq->list); | 584 | list_add_tail(&rsgl->list, &sreq->list); |
585 | } else { | 585 | } else { |
586 | rsgl = kzalloc(sizeof(*rsgl), GFP_KERNEL); | 586 | rsgl = kmalloc(sizeof(*rsgl), GFP_KERNEL); |
587 | if (!rsgl) { | 587 | if (!rsgl) { |
588 | err = -ENOMEM; | 588 | err = -ENOMEM; |
589 | goto free; | 589 | goto free; |