All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch -next] crypto: algif - signedness bug in skcipher_recvmsg_async()
@ 2015-03-26  9:13 ` Dan Carpenter
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2015-03-26  9:13 UTC (permalink / raw)
  To: Herbert Xu, Tadeusz Struk; +Cc: David S. Miller, linux-crypto, kernel-janitors

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 <dan.carpenter@oracle.com>

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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [patch -next] crypto: algif - signedness bug in skcipher_recvmsg_async()
@ 2015-03-26  9:13 ` Dan Carpenter
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2015-03-26  9:13 UTC (permalink / raw)
  To: Herbert Xu, Tadeusz Struk; +Cc: David S. Miller, linux-crypto, kernel-janitors

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 <dan.carpenter@oracle.com>

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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-26  9:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-26  9:13 [patch -next] crypto: algif - signedness bug in skcipher_recvmsg_async() Dan Carpenter
2015-03-26  9:13 ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.