@@ -268,8 +268,7 @@ static void *io_region_validate_mmap(struct io_ring_ctx *ctx,
268268 return io_region_get_ptr (mr );
269269}
270270
271- static void * io_uring_validate_mmap_request (struct file * file , loff_t pgoff ,
272- size_t sz )
271+ static void * io_uring_validate_mmap_request (struct file * file , loff_t pgoff )
273272{
274273 struct io_ring_ctx * ctx = file -> private_data ;
275274 struct io_mapped_region * region ;
@@ -304,7 +303,7 @@ __cold int io_uring_mmap(struct file *file, struct vm_area_struct *vma)
304303
305304 guard (mutex )(& ctx -> mmap_lock );
306305
307- ptr = io_uring_validate_mmap_request (file , vma -> vm_pgoff , sz );
306+ ptr = io_uring_validate_mmap_request (file , vma -> vm_pgoff );
308307 if (IS_ERR (ptr ))
309308 return PTR_ERR (ptr );
310309
@@ -336,7 +335,7 @@ unsigned long io_uring_get_unmapped_area(struct file *filp, unsigned long addr,
336335
337336 guard (mutex )(& ctx -> mmap_lock );
338337
339- ptr = io_uring_validate_mmap_request (filp , pgoff , len );
338+ ptr = io_uring_validate_mmap_request (filp , pgoff );
340339 if (IS_ERR (ptr ))
341340 return - ENOMEM ;
342341
@@ -386,7 +385,7 @@ unsigned long io_uring_get_unmapped_area(struct file *file, unsigned long addr,
386385
387386 guard (mutex )(& ctx -> mmap_lock );
388387
389- ptr = io_uring_validate_mmap_request (file , pgoff , len );
388+ ptr = io_uring_validate_mmap_request (file , pgoff );
390389 if (IS_ERR (ptr ))
391390 return PTR_ERR (ptr );
392391
0 commit comments