summaryrefslogtreecommitdiffstats
path: root/kernel/futex/pi.c
diff options
context:
space:
mode:
authorpeterz@infradead.org <peterz@infradead.org>2023-09-21 12:45:13 +0200
committerPeter Zijlstra <peterz@infradead.org>2023-09-21 19:22:09 +0200
commit3b63a55f498b763aba0886b244df613587a73c46 (patch)
tree0d44fd2a24f770b5fc6298a993a3a7eb25e57523 /kernel/futex/pi.c
parentcb8c4312afca1b2dc64107e7e7cea81911055612 (diff)
downloadlinux-stable-3b63a55f498b763aba0886b244df613587a73c46.tar.gz
linux-stable-3b63a55f498b763aba0886b244df613587a73c46.tar.bz2
linux-stable-3b63a55f498b763aba0886b244df613587a73c46.zip
futex: Propagate flags into get_futex_key()
Instead of only passing FLAGS_SHARED as a boolean, pass down flags as a whole. No functional change intended. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20230921105248.282857501@noisy.programming.kicks-ass.net
Diffstat (limited to 'kernel/futex/pi.c')
-rw-r--r--kernel/futex/pi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/futex/pi.c b/kernel/futex/pi.c
index d636a1bbd7d0..90e5197f4e56 100644
--- a/kernel/futex/pi.c
+++ b/kernel/futex/pi.c
@@ -933,7 +933,7 @@ int futex_lock_pi(u32 __user *uaddr, unsigned int flags, ktime_t *time, int tryl
to = futex_setup_timer(time, &timeout, flags, 0);
retry:
- ret = get_futex_key(uaddr, flags & FLAGS_SHARED, &q.key, FUTEX_WRITE);
+ ret = get_futex_key(uaddr, flags, &q.key, FUTEX_WRITE);
if (unlikely(ret != 0))
goto out;
@@ -1129,7 +1129,7 @@ retry:
if ((uval & FUTEX_TID_MASK) != vpid)
return -EPERM;
- ret = get_futex_key(uaddr, flags & FLAGS_SHARED, &key, FUTEX_WRITE);
+ ret = get_futex_key(uaddr, flags, &key, FUTEX_WRITE);
if (ret)
return ret;