[lkml]   [2007]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] aio: remove bare user-triggerable error printk
aio: remove bare user-triggerable error printk

The user can generate console output if they cause do_mmap() to fail during
sys_io_setup(). This was seen in a regression test that does exactly that by
spinning calling mmap() until it gets -ENOMEM before calling io_setup().

We don't need this printk all, just remove it.

Signed-off-by: Zach Brown <>

fs/aio.c | 1 -
1 file changed, 1 deletion(-)

--- a/fs/aio.c Tue Mar 27 14:56:08 2007 -0700
+++ b/fs/aio.c Tue Mar 27 14:56:49 2007 -0700
@@ -136,7 +136,6 @@ static int aio_setup_ring(struct kioctx
if (IS_ERR((void *)info->mmap_base)) {
- printk("mmap err: %ld\n", -info->mmap_base);
info->mmap_size = 0;
return -EAGAIN;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2007-03-28 00:47    [from the cache]
©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site