projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
m68k/defconfig: Update defconfigs for v4.18-rc6
[linux-2.6-microblaze.git]
/
crypto
/
af_alg.c
diff --git
a/crypto/af_alg.c
b/crypto/af_alg.c
index
314c52c
..
c166f42
100644
(file)
--- a/
crypto/af_alg.c
+++ b/
crypto/af_alg.c
@@
-1155,8
+1155,10
@@
int af_alg_get_rsgl(struct sock *sk, struct msghdr *msg, int flags,
/* make one iovec available as scatterlist */
err = af_alg_make_sg(&rsgl->sgl, &msg->msg_iter, seglen);
- if (err < 0)
+ if (err < 0) {
+ rsgl->sg_num_bytes = 0;
return err;
+ }
/* chain the new scatterlist with previous one */
if (areq->last_rsgl)