summaryrefslogtreecommitdiffstats
path: root/lib/iov_iter.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/iov_iter.c')
-rw-r--r--lib/iov_iter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/iov_iter.c b/lib/iov_iter.c
index f1e0569b4539..639d5e7014c1 100644
--- a/lib/iov_iter.c
+++ b/lib/iov_iter.c
@@ -878,7 +878,7 @@ static inline bool page_copy_sane(struct page *page, size_t offset, size_t n)
878 head = compound_head(page); 878 head = compound_head(page);
879 v += (page - head) << PAGE_SHIFT; 879 v += (page - head) << PAGE_SHIFT;
880 880
881 if (likely(n <= v && v <= (PAGE_SIZE << compound_order(head)))) 881 if (likely(n <= v && v <= (page_size(head))))
882 return true; 882 return true;
883 WARN_ON(1); 883 WARN_ON(1);
884 return false; 884 return false;