summaryrefslogtreecommitdiff
path: root/crypto/af_alg.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-02-11 19:47:00 -0800
committerDavid S. Miller <davem@davemloft.net>2015-02-11 19:47:00 -0800
commit126d18a6f67ad8d29388d82a448b178e2ac1a77c (patch)
tree6fdbfe3170e4f040d3b43fd2050f322434b3568d /crypto/af_alg.c
parentd5a1e7233d3fe74d6c85052b8aa7b8ef6a3e96f8 (diff)
downloadlinux-crypto-126d18a6f67ad8d29388d82a448b178e2ac1a77c.tar.gz
linux-crypto-126d18a6f67ad8d29388d82a448b178e2ac1a77c.zip
Revert "crypto: Fix regressions caused by iov_iter changes."
This reverts commit d5a1e7233d3fe74d6c85052b8aa7b8ef6a3e96f8. Linus already fixed this in his tree so just use what he did. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/af_alg.c')
-rw-r--r--crypto/af_alg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/af_alg.c b/crypto/af_alg.c
index 5b11d645..eb78fe8a 100644
--- a/crypto/af_alg.c
+++ b/crypto/af_alg.c
@@ -348,7 +348,7 @@ int af_alg_make_sg(struct af_alg_sgl *sgl, struct iov_iter *iter, int len)
if (n < 0)
return n;
- npages = DIV_ROUND_UP(off + n, PAGE_SIZE);
+ npages = PAGE_ALIGN(off + n);
if (WARN_ON(npages == 0))
return -EINVAL;