From: Linus Torvalds Date: Wed, 11 Feb 2015 03:55:45 +0000 (-0800) Subject: crypto: fix af_alg_make_sg() conversion to iov_iter X-Git-Tag: fixes-v4.0-rc1~150^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9399f0c51489ae8c16d6559b82a452fdc1895e91;p=pandora-kernel.git 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 Cc: David Miller Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed