diff options
-rw-r--r-- | crypto/algif_skcipher.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index 28556fce4267..bfb0a1a2507a 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c | |||
@@ -566,8 +566,10 @@ static int skcipher_recvmsg_async(struct socket *sock, struct msghdr *msg, | |||
566 | * need to expand */ | 566 | * need to expand */ |
567 | tmp = kcalloc(tx_nents * 2, sizeof(*tmp), | 567 | tmp = kcalloc(tx_nents * 2, sizeof(*tmp), |
568 | GFP_KERNEL); | 568 | GFP_KERNEL); |
569 | if (!tmp) | 569 | if (!tmp) { |
570 | err = -ENOMEM; | ||
570 | goto free; | 571 | goto free; |
572 | } | ||
571 | 573 | ||
572 | sg_init_table(tmp, tx_nents * 2); | 574 | sg_init_table(tmp, tx_nents * 2); |
573 | for (x = 0; x < tx_nents; x++) | 575 | for (x = 0; x < tx_nents; x++) |