diff --git a/crypto/algif_aead.c b/crypto/algif_aead.c index 38a6cab7aecacd308066ba40dcdae95ae6d5c6e0..0aa6fdfb448a8c4081e06aa9dcb041433dc280a5 100644 --- 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;