diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2015-03-30 14:25:44 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-01 15:32:35 -0400 |
commit | 241555a80df15f3cd885479ea97336c0755fef28 (patch) | |
tree | 08e998b004d143454dcd7d1256fe9fb44123aff9 | |
parent | 9a1ba9950fb0f473bce0764022be4b5b29f3c13f (diff) | |
download | linux-crypto-241555a80df15f3cd885479ea97336c0755fef28.tar.gz linux-crypto-241555a80df15f3cd885479ea97336c0755fef28.zip |
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>
-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 60496d40..2db1eb77 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; |