crypto: algif_aead - fix for multiple operations on AF_ALG sockets
[deliverable/linux.git] / crypto / algif_aead.c
index 38a6cab7aecacd308066ba40dcdae95ae6d5c6e0..0aa6fdfb448a8c4081e06aa9dcb041433dc280a5 100644 (file)
@@ -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;
This page took 0.027043 seconds and 5 git commands to generate.