Linus Torvalds
9399f0c514
crypto: fix af_alg_make_sg() conversion to iov_iter
...
Commit 1d10eb2f156f ("crypto: switch af_alg_make_sg() to iov_iter")
broke af_alg_make_sg() and skcipher_recvmsg() in the process of moving
them to the iov_iter interfaces. The 'npages' calculation in the formar
calculated the number of *bytes* in the pages, and in the latter case
the conversion didn't re-read the value of 'ctx->used' after waiting for
it to become non-zero.
This reverts to the original code for both these cases.
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-02-10 19:55:45 -08:00
..
2014-10-12 10:13:55 -04:00
2014-08-21 10:20:52 -07:00
2014-11-24 22:43:57 +08:00
2013-10-07 14:16:57 +08:00
2013-10-30 09:51:45 +08:00
2013-02-19 20:27:03 +08:00
2015-01-13 22:29:11 +11:00
2015-02-10 19:55:45 -08:00
2014-08-25 20:27:16 +08:00
2014-11-26 20:06:30 +08:00
2013-06-25 19:15:17 +08:00
2015-02-04 01:34:15 -05:00
2015-02-10 19:55:45 -08:00
2015-01-13 22:29:11 +11:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:30 +08:00
2014-11-26 20:06:30 +08:00
2014-03-10 20:17:11 +08:00
2011-09-22 21:25:25 +10:00
2015-01-13 22:29:11 +11:00
2015-01-13 22:29:11 +11:00
2015-01-13 22:29:11 +11:00
2015-01-13 22:29:11 +11:00
2013-08-14 20:42:03 +10:00
2014-11-26 20:06:30 +08:00
2014-11-26 20:06:30 +08:00
2014-11-26 20:06:30 +08:00
2010-02-16 20:31:37 +08:00
2014-11-26 20:06:30 +08:00
2010-02-16 20:31:04 +08:00
2014-11-24 22:43:57 +08:00
2015-01-13 22:29:11 +11:00
2013-09-12 15:31:34 +10:00
2015-01-13 22:29:11 +11:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:29 +08:00
2014-03-21 21:54:28 +08:00
2014-11-26 20:06:30 +08:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2015-01-13 22:29:11 +11:00
2014-11-27 22:26:18 +08:00
2014-11-26 20:06:30 +08:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2008-08-29 15:50:02 +10:00
2014-11-26 20:06:30 +08:00
2011-07-08 17:21:21 +08:00
2015-01-13 22:29:11 +11:00
2013-10-25 17:14:03 -04:00
2014-11-26 20:06:30 +08:00
2013-06-25 19:15:17 +08:00
2014-10-08 06:44:48 -04:00
2014-11-24 22:43:57 +08:00
2015-01-13 22:29:11 +11:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-08-25 20:32:25 +08:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2013-12-09 20:09:12 +08:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:30 +08:00
2013-02-19 20:27:03 +08:00
2014-11-26 20:06:30 +08:00
2011-10-31 19:31:11 -04:00
2008-07-10 20:35:12 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2013-02-19 20:27:03 +08:00
2015-01-13 22:29:11 +11:00
2013-08-21 21:27:58 +10:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:30 +08:00
2015-01-13 22:29:11 +11:00
2015-01-13 22:29:11 +11:00
2015-01-13 22:29:11 +11:00
2015-01-13 22:29:11 +11:00
2014-06-07 11:44:39 -07:00
2014-12-05 23:57:47 +08:00
2013-12-20 20:06:25 +08:00
2015-01-13 22:29:11 +11:00
2014-10-24 22:49:36 +08:00
2014-08-29 21:46:36 +08:00
2015-01-13 22:29:11 +11:00
2011-11-09 11:53:32 +08:00
2015-01-13 22:29:11 +11:00
2014-11-26 20:06:30 +08:00
2015-01-13 22:29:11 +11:00
2014-11-26 20:06:30 +08:00
2012-10-11 13:42:32 +11:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00