projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ARM/ARM64: config: enable DM_INIT configuration
[platform/kernel/linux-rpi.git]
/
crypto
/
af_alg.c
diff --git
a/crypto/af_alg.c
b/crypto/af_alg.c
index
18cc82d
..
8bd288d
100644
(file)
--- a/
crypto/af_alg.c
+++ b/
crypto/af_alg.c
@@
-411,7
+411,7
@@
int af_alg_make_sg(struct af_alg_sgl *sgl, struct iov_iter *iter, int len)
if (n < 0)
return n;
- npages =
(off + n + PAGE_SIZE - 1) >> PAGE_SHIFT
;
+ npages =
DIV_ROUND_UP(off + n, PAGE_SIZE)
;
if (WARN_ON(npages == 0))
return -EINVAL;
/* Add one extra for linking */