From: Zach Brown Date: Tue, 27 Mar 2007 22:44:01 +0000 (-0700) Subject: [PATCH] aio: remove bare user-triggerable error printk X-Git-Tag: v2.6.21-rc6~83 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=28defbea64622f69d65a6079bf800cedb9915a5f;p=linux-2.6-omap-h63xx.git [PATCH] 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 at all, just remove it. Signed-off-by: Zach Brown Signed-off-by: Linus Torvalds --- diff --git a/fs/aio.c b/fs/aio.c index 0b4ee0a5c83..e4598d6d49d 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -136,7 +136,6 @@ static int aio_setup_ring(struct kioctx *ctx) 0); if (IS_ERR((void *)info->mmap_base)) { up_write(&ctx->mm->mmap_sem); - printk("mmap err: %ld\n", -info->mmap_base); info->mmap_size = 0; aio_free_ring(ctx); return -EAGAIN;