diff options
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 0dadbdbead0f..f83de4c6a826 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c | |||
@@ -3319,7 +3319,7 @@ static int io_uring_mmap(struct file *file, struct vm_area_struct *vma) | |||
3319 | } | 3319 | } |
3320 | 3320 | ||
3321 | page = virt_to_head_page(ptr); | 3321 | page = virt_to_head_page(ptr); |
3322 | if (sz > (PAGE_SIZE << compound_order(page))) | 3322 | if (sz > page_size(page)) |
3323 | return -EINVAL; | 3323 | return -EINVAL; |
3324 | 3324 | ||
3325 | pfn = virt_to_phys(ptr) >> PAGE_SHIFT; | 3325 | pfn = virt_to_phys(ptr) >> PAGE_SHIFT; |