Commit 0e2e24e5dc(aio: fix kernel memory disclosure in io_getevents()
introduced in v3.10) is the same as bee3f7b818(aio: fix kernel memory
disclosure in io_getevents() introduced in v3.10), it seems a mistake
here, so revert the duplicate one.

Signed-off-by: Gu Zheng <[email protected]>
---
 fs/aio.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/fs/aio.c b/fs/aio.c
index 0abde33..e609e15 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1066,9 +1066,6 @@ static long aio_read_events_ring(struct kioctx *ctx,
        head %= ctx->nr_events;
        tail %= ctx->nr_events;
 
-       head %= ctx->nr_events;
-       tail %= ctx->nr_events;
-
        while (ret < nr) {
                long avail;
                struct io_event *ev;
-- 
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to