[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211204181458.10076-1-6812skiii@gmail.com>
Date: Sun, 5 Dec 2021 03:14:58 +0900
From: 6812skiii@...il.com
To: tglx@...utronix.de, mingo@...hat.com
Cc: peterz@...radead.org, dvhart@...radead.org, dave@...olabs.net,
andrealmeid@...labora.com, linux-kernel@...r.kernel.org,
Jangwoong Kim <6812skiii@...il.com>
Subject: [PATCH] futex: Fix a faulty comment.
From: Jangwoong Kim <6812skiii@...il.com>
We return 1, not the index of futex woken up.
Signed-off-by: Jangwoong Kim <6812skiii@...il.com>
---
kernel/futex/waitwake.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/futex/waitwake.c b/kernel/futex/waitwake.c
index 4ce0923f1ce3..d148e5d4956b 100644
--- a/kernel/futex/waitwake.c
+++ b/kernel/futex/waitwake.c
@@ -455,8 +455,8 @@ static int futex_wait_multiple_setup(struct futex_vector *vs, int count, int *wo
/*
* Even if something went wrong, if we find out that a futex
- * was woken, we don't return error and return this index to
- * userspace
+ * was woken, we don't return error and make userspace aware
+ * of this by returning 1.
*/
*woken = unqueue_multiple(vs, i);
if (*woken >= 0)
--
2.25.1
Powered by blists - more mailing lists