Commit 28defbea64622f69d65a6079bf800cedb9915a5f

Authored by Zach Brown
Committed by Linus Torvalds
1 parent d459094083

[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 <zach.brown@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

... ... @@ -136,7 +136,6 @@
136 136 0);
137 137 if (IS_ERR((void *)info->mmap_base)) {
138 138 up_write(&ctx->mm->mmap_sem);
139   - printk("mmap err: %ld\n", -info->mmap_base);
140 139 info->mmap_size = 0;
141 140 aio_free_ring(ctx);
142 141 return -EAGAIN;