From: Zach Brown Date: Wed, 25 Apr 2007 22:47:15 +0000 (+0200) Subject: aio: remove bare user-triggerable error printk X-Git-Tag: v2.6.16.50-rc1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70272a6c174b13f764322d1ac8c43f10372f4b0c;p=thirdparty%2Fkernel%2Fstable.git 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: Adrian Bunk --- diff --git a/fs/aio.c b/fs/aio.c index aec2b1916d1b2..a2d68ee8cac33 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;