From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Thu, 26 Mar 2015 09:13:12 +0000 Subject: [patch -next] crypto: algif - signedness bug in skcipher_recvmsg_async() Message-Id: <20150326091312.GA21084@mwanda> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Herbert Xu , Tadeusz Struk Cc: "David S. Miller" , linux-crypto@vger.kernel.org, kernel-janitors@vger.kernel.org This needs to be signed because af_alg_make_sg() returns negative error codes. Fixes: a596999b7ddf ('crypto: algif - change algif_skcipher to be asynchronous') Signed-off-by: Dan Carpenter diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index 506eb5f..142430f 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c @@ -537,7 +537,7 @@ static int skcipher_recvmsg_async(struct socket *sock, struct msghdr *msg, while (iov_iter_count(&msg->msg_iter)) { struct skcipher_async_rsgl *rsgl; - unsigned long used; + long used; if (!ctx->used) { err = skcipher_wait_for_data(sk, flags);