aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/algif_skcipher.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/algif_skcipher.c')
-rw-r--r--crypto/algif_skcipher.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c
index 211c956952ca..9b2f440e88a6 100644
--- a/crypto/algif_skcipher.c
+++ b/crypto/algif_skcipher.c
@@ -472,7 +472,8 @@ static int skcipher_recvmsg(struct kiocb *unused, struct socket *sock,
472 goto unlock; 472 goto unlock;
473 473
474 used = af_alg_make_sg(&ctx->rsgl, from, used, 1); 474 used = af_alg_make_sg(&ctx->rsgl, from, used, 1);
475 if (used < 0) 475 err = used;
476 if (err < 0)
476 goto unlock; 477 goto unlock;
477 478
478 ablkcipher_request_set_crypt(&ctx->req, sg, 479 ablkcipher_request_set_crypt(&ctx->req, sg,