Revert "x86-64, modify_ldt: Make support for 16-bit segments a runtime option"
[pandora-kernel.git] / crypto / algif_skcipher.c
index 6a6dfc0..a19c027 100644 (file)
@@ -378,6 +378,9 @@ static ssize_t skcipher_sendpage(struct socket *sock, struct page *page,
        struct skcipher_sg_list *sgl;
        int err = -EINVAL;
 
+       if (flags & MSG_SENDPAGE_NOTLAST)
+               flags |= MSG_MORE;
+
        lock_sock(sk);
        if (!ctx->more && ctx->used)
                goto unlock;