projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
crypto: algif_aead - fix for multiple operations on AF_ALG sockets
[firefly-linux-kernel-4.4.55.git]
/
crypto
/
algif_aead.c
diff --git
a/crypto/algif_aead.c
b/crypto/algif_aead.c
index 38a6cab7aecacd308066ba40dcdae95ae6d5c6e0..0aa6fdfb448a8c4081e06aa9dcb041433dc280a5 100644
(file)
--- a/
crypto/algif_aead.c
+++ b/
crypto/algif_aead.c
@@
-90,6
+90,7
@@
static void aead_put_sgl(struct sock *sk)
put_page(sg_page(sg + i));
sg_assign_page(sg + i, NULL);
}
+ sg_init_table(sg, ALG_MAX_PAGES);
sgl->cur = 0;
ctx->used = 0;
ctx->more = 0;