diff options
| -rw-r--r-- | fs/aio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/aio.c b/fs/aio.c index 3b8467aeb5eeb5..40fddf4217bde1 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -688,8 +688,7 @@ static struct kioctx *ioctx_alloc(unsigned nr_events) nr_events *= 2; /* Prevent overflows */ - if ((nr_events > (0x10000000U / sizeof(struct io_event))) || - (nr_events > (0x10000000U / sizeof(struct kiocb)))) { + if (nr_events > (0x10000000U / sizeof(struct io_event))) { pr_debug("ENOMEM: nr_events too high\n"); return ERR_PTR(-EINVAL); } |
