Skip to contentSkip to conversation

2.5.67 - small AIO bug fix

PATCH Badari Pulavarty 1 participant 1 message Apr 16, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

Here is a small bug fix for AIO. get_user_pages() takes number of pages to map as argument. (not in bytes)

Please apply.

Thanks,
Badari

fs/aio.c +1 -1
@@ -148,7 +148,7 @@ static int aio_setup_ring(struct kioctx 
 
 	dprintk("mmap address: 0x%08lx\n", info->mmap_base);
 	info->nr_pages = get_user_pages(current, ctx->mm,
-					info->mmap_base, info->mmap_size, 
+					info->mmap_base, nr_pages, 
 					1, 0, info->ring_pages, NULL);
 	up_write(&ctx->mm->mmap_sem);