X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=crypto%2Falgif_skcipher.c;h=a19c027b29bde504ac8eae4b4572947a69ed2335;hb=a80ffa191b093129e184c7e06ef718a3937f2075;hp=6a6dfc062d2a47f04449fbb0e1c3f3852be337dc;hpb=c3fda066ded5513d1ccdbdbb449323c0ec669aa1;p=~andy%2Flinux diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index 6a6dfc062d2..a19c027b29b 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c @@ -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;