]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/io_uring.c
i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
[linux.git] / fs / io_uring.c
index c934f91c51e92222f7d9887034adf74b97e00062..aa8ac557493cb5e20f1ac78a87bb6b8e6e6f6fe8 100644 (file)
@@ -3558,7 +3558,7 @@ static int io_uring_mmap(struct file *file, struct vm_area_struct *vma)
        }
 
        page = virt_to_head_page(ptr);
-       if (sz > (PAGE_SIZE << compound_order(page)))
+       if (sz > page_size(page))
                return -EINVAL;
 
        pfn = virt_to_phys(ptr) >> PAGE_SHIFT;