projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf: Fix context leak in put_event()
[firefly-linux-kernel-4.4.55.git]
/
fs
/
aio.c
diff --git
a/fs/aio.c
b/fs/aio.c
index 118a2e0088d8fdd8391654a44edb06157dad5629..f8e52a1854c1ab383e32383ac65a0f167e385793 100644
(file)
--- a/
fs/aio.c
+++ b/
fs/aio.c
@@
-1285,7
+1285,7
@@
SYSCALL_DEFINE2(io_setup, unsigned, nr_events, aio_context_t __user *, ctxp)
ret = -EINVAL;
if (unlikely(ctx || nr_events == 0)) {
ret = -EINVAL;
if (unlikely(ctx || nr_events == 0)) {
- pr_debug("EINVAL:
io_setup:
ctx %lu nr_events %u\n",
+ pr_debug("EINVAL: ctx %lu nr_events %u\n",
ctx, nr_events);
goto out;
}
ctx, nr_events);
goto out;
}
@@
-1333,7
+1333,7
@@
SYSCALL_DEFINE1(io_destroy, aio_context_t, ctx)
return ret;
}
return ret;
}
- pr_debug("EINVAL: i
o_destroy: i
nvalid context id\n");
+ pr_debug("EINVAL: invalid context id\n");
return -EINVAL;
}
return -EINVAL;
}
@@
-1515,7
+1515,7
@@
static int io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb,
(iocb->aio_nbytes != (size_t)iocb->aio_nbytes) ||
((ssize_t)iocb->aio_nbytes < 0)
)) {
(iocb->aio_nbytes != (size_t)iocb->aio_nbytes) ||
((ssize_t)iocb->aio_nbytes < 0)
)) {
- pr_debug("EINVAL:
io_submit:
overflow check\n");
+ pr_debug("EINVAL: overflow check\n");
return -EINVAL;
}
return -EINVAL;
}