Skip to content

Commit

Permalink
[PATCH] aio: remove bare user-triggerable error printk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zach Brown authored and Linus Torvalds committed Mar 28, 2007
1 parent d459094 commit 28defbe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 28defbe

Please sign in to comment.