diff options
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1285,7 +1285,7 @@ SYSCALL_DEFINE2(io_setup, unsigned, nr_events, aio_context_t __user *, ctxp) | |||
1285 | 1285 | ||
1286 | ret = -EINVAL; | 1286 | ret = -EINVAL; |
1287 | if (unlikely(ctx || nr_events == 0)) { | 1287 | if (unlikely(ctx || nr_events == 0)) { |
1288 | pr_debug("EINVAL: io_setup: ctx %lu nr_events %u\n", | 1288 | pr_debug("EINVAL: ctx %lu nr_events %u\n", |
1289 | ctx, nr_events); | 1289 | ctx, nr_events); |
1290 | goto out; | 1290 | goto out; |
1291 | } | 1291 | } |
@@ -1333,7 +1333,7 @@ SYSCALL_DEFINE1(io_destroy, aio_context_t, ctx) | |||
1333 | 1333 | ||
1334 | return ret; | 1334 | return ret; |
1335 | } | 1335 | } |
1336 | pr_debug("EINVAL: io_destroy: invalid context id\n"); | 1336 | pr_debug("EINVAL: invalid context id\n"); |
1337 | return -EINVAL; | 1337 | return -EINVAL; |
1338 | } | 1338 | } |
1339 | 1339 | ||
@@ -1515,7 +1515,7 @@ static int io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb, | |||
1515 | (iocb->aio_nbytes != (size_t)iocb->aio_nbytes) || | 1515 | (iocb->aio_nbytes != (size_t)iocb->aio_nbytes) || |
1516 | ((ssize_t)iocb->aio_nbytes < 0) | 1516 | ((ssize_t)iocb->aio_nbytes < 0) |
1517 | )) { | 1517 | )) { |
1518 | pr_debug("EINVAL: io_submit: overflow check\n"); | 1518 | pr_debug("EINVAL: overflow check\n"); |
1519 | return -EINVAL; | 1519 | return -EINVAL; |
1520 | } | 1520 | } |
1521 | 1521 | ||