projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
887c883
)
crypto: algif_skcipher - Pass on error from af_alg_make_sg
author
Herbert Xu
<herbert@gondor.apana.org.au>
Sun, 28 Nov 2010 08:28:01 +0000
(16:28 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sun, 28 Nov 2010 08:28:01 +0000
(16:28 +0800)
The error returned from af_alg_make_sg is currently lost and we
always pass on -EINVAL. This patch pases on the underlying error.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algif_skcipher.c
patch
|
blob
|
history
diff --git
a/crypto/algif_skcipher.c
b/crypto/algif_skcipher.c
index
211c956
..
9b2f440
100644
(file)
--- a/
crypto/algif_skcipher.c
+++ b/
crypto/algif_skcipher.c
@@
-472,7
+472,8
@@
static int skcipher_recvmsg(struct kiocb *unused, struct socket *sock,
goto unlock;
used = af_alg_make_sg(&ctx->rsgl, from, used, 1);
- if (used < 0)
+ err = used;
+ if (err < 0)
goto unlock;
ablkcipher_request_set_crypt(&ctx->req, sg,