]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
aio: remove bare user-triggerable error printk
authorZach Brown <zach.brown@oracle.com>
Wed, 25 Apr 2007 22:47:15 +0000 (00:47 +0200)
committerAdrian Bunk <bunk@stusta.de>
Wed, 25 Apr 2007 22:47:15 +0000 (00:47 +0200)
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 <zach.brown@oracle.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
fs/aio.c

index aec2b1916d1b27e4bc9411212359801b8ba70386..a2d68ee8cac33227e66800b9e8b21db0bb4f625b 100644 (file)
--- 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;