]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - crypto/algif_skcipher.c
x86/speculation: Rework speculative_store_bypass_update()
[mirror_ubuntu-artful-kernel.git] / crypto / algif_skcipher.c
index 903605dbc1a50282e8e3d7ced0bba148ec7ebe9c..76b875c69a95c4d2a45426f65a7543a8fa618234 100644 (file)
@@ -144,8 +144,10 @@ static int skcipher_alloc_sgl(struct sock *sk)
                sg_init_table(sgl->sg, MAX_SGL_ENTS + 1);
                sgl->cur = 0;
 
-               if (sg)
+               if (sg) {
                        sg_chain(sg, MAX_SGL_ENTS + 1, sgl->sg);
+                       sg_unmark_end(sg + (MAX_SGL_ENTS - 1));
+               }
 
                list_add_tail(&sgl->list, &ctx->tsgl);
        }