[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150401.153202.1090532458862532893.davem@davemloft.net>
Date: Wed, 01 Apr 2015 15:32:02 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: tadeusz.struk@...el.com
Cc: netdev@...r.kernel.org, linux-crypto@...r.kernel.org,
herbert@...dor.apana.org.au
Subject: Re: [PATCH net-next] crypto: algif - explicitly mark end of data
From: Tadeusz Struk <tadeusz.struk@...el.com>
Date: Mon, 30 Mar 2015 14:25:43 -0700
> + int mark = 0, err = -ENOMEM;
>
> lock_sock(sk);
> req = kmalloc(reqlen, GFP_KERNEL);
...
> @@ -573,10 +572,11 @@ static int skcipher_recvmsg_async(struct socket *sock, struct msghdr *msg,
> kfree(sreq->tsg);
> sreq->tsg = tmp;
> tx_nents *= 2;
> + mark = 1;
...
> @@ -604,6 +604,9 @@ static int skcipher_recvmsg_async(struct socket *sock, struct msghdr *msg,
> iov_iter_advance(&msg->msg_iter, used);
> }
>
> + if (mark)
> + sg_mark_end(sreq->tsg + txbufs - 1);
Please use type 'bool' and true/false for 'mark'.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists